]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-new.c
add_message: Properly handle missing Message-ID once again.
[notmuch] / notmuch-new.c
index 8b3195984680fd948b1bae764ff1cf6068db9f83..1b0558486b400b74609c811d7eb8188ebe17700a 100644 (file)
@@ -407,6 +407,7 @@ notmuch_new_command (void *ctx,
        if (interrupted)
            return 1;
 
+       printf ("Found %d total files.     \n", count);
        notmuch = notmuch_database_create (db_path);
        add_files_state.ignore_read_only_directories = FALSE;
        add_files_state.total_files = count;
@@ -423,7 +424,6 @@ notmuch_new_command (void *ctx,
     dot_notmuch_path = NULL;
 
     add_files_state.saw_read_only_directory = FALSE;
-    add_files_state.total_files = 0;
     add_files_state.processed_files = 0;
     add_files_state.added_messages = 0;
     gettimeofday (&add_files_state.tv_start, NULL);