]> granicus.if.org Git - neomutt/commitdiff
forgotten-attachment: Ignore lines matching quote_regexp.
authorSteven! Ragnarök <steven@nuclearsandwich.com>
Wed, 19 Oct 2016 00:05:29 +0000 (20:05 -0400)
committerRichard Russon <rich@flatcap.org>
Wed, 19 Oct 2016 23:44:31 +0000 (00:44 +0100)
Ignore quoted text in the email when searching for attachment
indicators.

send.c

diff --git a/send.c b/send.c
index 55f626edac045b79382caeb825ad1e0967eabb64..d2a2491f433d86967e0f5a4f53d92e9113d3087e 100644 (file)
--- 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;