From: Kevin McCarthy Date: Tue, 14 Aug 2018 02:02:32 +0000 (-0700) Subject: Don't match $abort_noattach_regexp on quoted lines. X-Git-Tag: mutt-1-11-rel~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8b626bcb4bfbaae0a9f0e490f2884d598acbeeb;p=mutt Don't match $abort_noattach_regexp on quoted lines. --- diff --git a/send.c b/send.c index 316904b8..51c2fc25 100644 --- a/send.c +++ b/send.c @@ -1148,7 +1148,8 @@ static int has_attach_keyword (char *filename) while ((buf = mutt_read_line (buf, &blen, fp, NULL, 0)) != NULL) { - if (regexec (AbortNoattachRegexp.rx, buf, 0, NULL, 0) == 0) + if (!mutt_is_quote_line (buf, NULL) && + regexec (AbortNoattachRegexp.rx, buf, 0, NULL, 0) == 0) { match = 1; break;