summaryrefslogtreecommitdiffstats
path: root/crypt.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2018-12-29 13:50:00 -0800
committerKevin McCarthy <kevin@8t8.us>2018-12-29 14:12:07 -0800
commit0917da9610f9cc9efd9d1f5abc0e1e227a2b5022 (patch)
tree5ddd7b743cf8de5ae3c04ad7e85c0d248c5e76a0 /crypt.c
parentf3f98bd66cde06d02b943a062142cc268019579a (diff)
Respect ignore for the protected subject display.
Diffstat (limited to 'crypt.c')
-rw-r--r--crypt.c5
1 files changed, 5 insertions, 0 deletions
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,