mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 04:18:08 +01:00
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.
This commit is contained in:
parent
e68022416d
commit
11fda0bf2f
2 changed files with 2 additions and 2 deletions
|
@ -250,7 +250,8 @@ database_dump_file (notmuch_database_t *notmuch, gzFile output,
|
||||||
|
|
||||||
message = notmuch_messages_get (messages);
|
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))
|
&buffer, &buffer_size))
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
|
||||||
|
|
|
@ -210,7 +210,6 @@ notmuch dump | grep '^#=' > OUTPUT
|
||||||
test_expect_equal_file PROPERTIES OUTPUT
|
test_expect_equal_file PROPERTIES OUTPUT
|
||||||
|
|
||||||
test_begin_subtest "dump _only_ message properties"
|
test_begin_subtest "dump _only_ message properties"
|
||||||
test_subtest_known_broken
|
|
||||||
cat <<EOF > EXPECTED
|
cat <<EOF > EXPECTED
|
||||||
#notmuch-dump batch-tag:3 properties
|
#notmuch-dump batch-tag:3 properties
|
||||||
#= 4EFC743A.3060609@april.org fancy%20key%20with%20%c3%a1cc%c3%a8nts=import%20value%20with%20= testkey1=alice testkey1=bob testkey1=testvalue1 testkey1=testvalue2 testkey3=alice3 testkey3=bob3 testkey3=testvalue3
|
#= 4EFC743A.3060609@april.org fancy%20key%20with%20%c3%a1cc%c3%a8nts=import%20value%20with%20= testkey1=alice testkey1=bob testkey1=testvalue1 testkey1=testvalue2 testkey3=alice3 testkey3=bob3 testkey3=testvalue3
|
||||||
|
|
Loading…
Reference in a new issue