]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-dump.c
cli/crypto: treat failure to create a crypto context as fatal.
[notmuch] / notmuch-dump.c
index 0cbcdc16695c3686ff6d1058da913be336a8ad63..5cc3b2f62b46530e5dbb3f63b5d127043fc9c610 100644 (file)
@@ -84,7 +84,7 @@ print_dump_header (gzFile output, int output_format, int include)
        sep = ",";
     }
     if (include & DUMP_INCLUDE_TAGS) {
-       gzprintf (output, "%sproperties", sep);
+       gzprintf (output, "%stags", sep);
     }
     gzputs (output, "\n");
 }
@@ -250,7 +250,8 @@ database_dump_file (notmuch_database_t *notmuch, gzFile output,
 
        message = notmuch_messages_get (messages);
 
-       if (dump_tags_message (notmuch, message, output_format, output,
+       if ((include & DUMP_INCLUDE_TAGS) &&
+           dump_tags_message (notmuch, message, output_format, output,
                               &buffer, &buffer_size))
            return EXIT_FAILURE;