mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 20:08:10 +01:00
CLI/new: check status of notmuch_message_maildir_flags_to_tags
This improves error reporting since it prints the specifics of the exception.
This commit is contained in:
parent
564a83077a
commit
ff07183a02
1 changed files with 5 additions and 2 deletions
|
@ -403,8 +403,11 @@ add_file (notmuch_database_t *notmuch, const char *filename,
|
|||
break;
|
||||
/* Non-fatal issues (go on to next file). */
|
||||
case NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID:
|
||||
if (state->synchronize_flags)
|
||||
notmuch_message_maildir_flags_to_tags (message);
|
||||
if (state->synchronize_flags) {
|
||||
status = notmuch_message_maildir_flags_to_tags (message);
|
||||
if (print_status_message ("add_file", message, status))
|
||||
goto DONE;
|
||||
}
|
||||
break;
|
||||
case NOTMUCH_STATUS_FILE_NOT_EMAIL:
|
||||
fprintf (stderr, "Note: Ignoring non-mail file: %s\n", filename);
|
||||
|
|
Loading…
Reference in a new issue