From: Steven! Ragnarök Date: Wed, 19 Oct 2016 00:05:29 +0000 (-0400) Subject: forgotten-attachment: Ignore lines matching quote_regexp. X-Git-Tag: neomutt-20161028~14^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6df5cad7fe28c1eff23dab291be2293fa3accc49;p=neomutt forgotten-attachment: Ignore lines matching quote_regexp. Ignore quoted text in the email when searching for attachment indicators. --- diff --git a/send.c b/send.c index 55f626eda..d2a2491f4 100644 --- a/send.c +++ b/send.c @@ -1252,7 +1252,8 @@ mutt_search_attach_keyword (char *filename) while (!feof (attf)) { fgets (inputline, LONG_STRING, attf); - if (regexec (AttachKeyword.rx, inputline, 0, NULL, 0) == 0) + if (regexec (QuoteRegexp.rx, inputline, 0, NULL, 0) != 0 && + regexec (AttachKeyword.rx, inputline, 0, NULL, 0) == 0) { found = 1; break;