Printing "Added 1 new messages" just looks like lack of attention
to detail, (but yes plurals can be annoying this way).
} else {
printf (". \n");
}
} else {
printf (". \n");
}
- printf ("Added %d unique messages to the database.\n\n",
- add_files_state.added_messages);
+ if (add_files_state.added_messages) {
+ printf ("Added %d %s to the database.\n\n",
+ add_files_state.added_messages,
+ add_files_state.added_messages == 1 ?
+ "message" : "unique messages");
+ }
printf ("When new mail is delivered to %s in the future,\n"
"run \"notmuch new\" to add it to the database.\n",
printf ("When new mail is delivered to %s in the future,\n"
"run \"notmuch new\" to add it to the database.\n",
}
}
if (add_files_state.added_messages) {
}
}
if (add_files_state.added_messages) {
- printf ("Added %d new messages to the database (not much, really).\n",
- add_files_state.added_messages);
+ printf ("Added %d new %s to the database (not much, really).\n",
+ add_files_state.added_messages,
+ add_files_state.added_messages == 1 ?
+ "message" : "messages");
} else {
printf ("No new mail---and that's not much!\n");
}
} else {
printf ("No new mail---and that's not much!\n");
}