]> git.notmuchmail.org Git - notmuch/blobdiff - notmuch-dump.c
cli/dump: don't include tags when not asked for
[notmuch] / notmuch-dump.c
index 0bb946f8f3378babd16d261d2e1106e068150db5..f0ac193241191da7dbcd64e53f4db71cbf4a2764 100644 (file)
@@ -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;