]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-new.c
Maildir synchronization
[notmuch] / notmuch-new.c
index 6432c664ead174929c3066b3e9d3f94edac563fe..ed3f944f0c9468cde72d2708bf704f7c1a1e057c 100644 (file)
@@ -35,7 +35,7 @@ typedef struct _filename_list {
 typedef struct {
     int output_is_a_tty;
     int verbose;
-    char **new_tags;
+    const char **new_tags;
     size_t new_tags_length;
 
     int total_files;
@@ -410,10 +410,11 @@ add_files_recursive (notmuch_database_t *notmuch,
            state->added_messages++;
            for (tag=state->new_tags; *tag != NULL; tag++)
                notmuch_message_add_tag (message, *tag);
+           notmuch_message_maildir_to_tags (message, next);
            break;
        /* Non-fatal issues (go on to next file) */
        case NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID:
-           /* Stay silent on this one. */
+           notmuch_message_maildir_to_tags (message, next);
            break;
        case NOTMUCH_STATUS_FILE_NOT_EMAIL:
            fprintf (stderr, "Note: Ignoring non-mail file: %s\n",