]> granicus.if.org Git - mutt/commitdiff
Don't match $abort_noattach_regexp on quoted lines.
authorKevin McCarthy <kevin@8t8.us>
Tue, 14 Aug 2018 02:02:32 +0000 (19:02 -0700)
committerKevin McCarthy <kevin@8t8.us>
Tue, 14 Aug 2018 02:03:37 +0000 (19:03 -0700)
send.c

diff --git a/send.c b/send.c
index 316904b8e2c9ae590f1a8e6c6dde853a26cc9129..51c2fc25ea6ae0eee43e6c96265d9936861924ce 100644 (file)
--- 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;