From: Riad S. Wahby Date: Tue, 3 Jan 2017 03:45:04 +0000 (-0800) Subject: notmuch: make 'Folder' and 'Tags' respect (un)ignore X-Git-Tag: neomutt-20170113~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de6e7e1fc7d773b316a1bb893805f8f3ffdf5eeb;p=neomutt notmuch: make 'Folder' and 'Tags' respect (un)ignore To get the previous behaviour, add this to your muttrc: unignore folder tags Closes: #279 --- diff --git a/copy.c b/copy.c index f4c1945d3..e226216bd 100644 --- a/copy.c +++ b/copy.c @@ -431,7 +431,7 @@ mutt_copy_header (FILE *in, HEADER *h, FILE *out, int flags, const char *prefix) { /* Add some fake headers based on notmuch data */ char *folder = nm_header_get_folder(h); - if (folder) + if (folder && !(option (OPTWEED) && mutt_matches_ignore ("folder"))) { char buffer[LONG_STRING]; strfcpy (buffer, folder, sizeof (buffer)); @@ -442,7 +442,7 @@ mutt_copy_header (FILE *in, HEADER *h, FILE *out, int flags, const char *prefix) fputc ('\n', out); } char *tags = nm_header_get_tags(h); - if (tags) + if (tags && !(option (OPTWEED) && mutt_matches_ignore ("tags"))) { fputs ("Tags: ", out); fputs (tags, out);