From 0917da9610f9cc9efd9d1f5abc0e1e227a2b5022 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Sat, 29 Dec 2018 13:50:00 -0800 Subject: [PATCH] Respect ignore for the protected subject display. --- crypt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crypt.c b/crypt.c index 7c39f856..0c3da324 100644 --- a/crypt.c +++ b/crypt.c @@ -943,6 +943,11 @@ int mutt_protected_headers_handler (BODY *a, STATE *s) { if (a->mime_headers->subject) { + if ((s->flags & MUTT_DISPLAY) && option (OPTWEED) && + mutt_matches_ignore ("subject", Ignore) && + !mutt_matches_ignore ("subject", UnIgnore)) + return 0; + state_mark_protected_header (s); mutt_write_one_header (s->fpout, "Subject", a->mime_headers->subject, s->prefix, -- 2.50.1