From 6df5cad7fe28c1eff23dab291be2293fa3accc49 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Steven!=20Ragnaro=CC=88k?= Date: Tue, 18 Oct 2016 20:05:29 -0400 Subject: [PATCH] forgotten-attachment: Ignore lines matching quote_regexp. Ignore quoted text in the email when searching for attachment indicators. --- send.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.40.0