aboutsummaryrefslogtreecommitdiff
path: root/notmuch-dump.c
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2017-05-07 22:44:23 -0300
committerDavid Bremner <david@tethera.net>2017-06-01 07:07:32 -0300
commit11fda0bf2fd74b227d15a2bb6b36a8ce6403c8e9 (patch)
treeaac9256477180bf7d0b4eac51a47855aef76e544 /notmuch-dump.c
parente68022416d543e50d7cd4eaad218bddd90fdb805 (diff)
cli/dump: don't include tags when not asked for
Add in the analogous test for tags that is given for properties a few lines below.
Diffstat (limited to 'notmuch-dump.c')
-rw-r--r--notmuch-dump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/notmuch-dump.c b/notmuch-dump.c
index 0bb946f8..f0ac1932 100644
--- a/notmuch-dump.c
+++ b/notmuch-dump.c
@@ -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;