]> git.cworth.org Git - notmuch/commitdiff
CLI: print extra headers only for non-replies
authorDavid Bremner <david@tethera.net>
Wed, 19 Jan 2022 01:26:45 +0000 (21:26 -0400)
committerDavid Bremner <david@tethera.net>
Wed, 19 Jan 2022 01:26:45 +0000 (21:26 -0400)
If in the future we decide to output extra headers for replies, this
should be controlled by a separate configuration option.

notmuch-show.c
test/T310-emacs.sh

index 136f44391255c1b6a9123de0a394df393f38443e..6a54d9c16a0684b28bbc9e98e2c62bed340ba03e 100644 (file)
@@ -294,7 +294,8 @@ format_headers_sprinter (sprinter_t *sp, GMimeMessage *message,
     }
 
     /* Output extra headers the user has configured, if any */
-    format_extra_headers_sprinter (sp, message);
+    if (! reply)
+       format_extra_headers_sprinter (sp, message);
     sp->end (sp);
     talloc_free (local);
 }
index 831df1cc10fc9b5fceaca5182ea7fdc72649935c..a05b828ae9f759f31c12a41c015cc77224d8a4ea 100755 (executable)
@@ -486,7 +486,6 @@ EOF
 test_expect_equal_file EXPECTED OUTPUT
 
 test_begin_subtest "Reply with show.extra_headers set"
-test_subtest_known_broken
 notmuch config set show.extra_headers Received
 add_message '[from]="Sender <sender@example.com>"' \
             [to]=test_suite_other@notmuchmail.org