From 8dd1ace6ca6dbaa918e9f10fdbc22212dc5cc50c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Steven!=20Ragnaro=CC=88k?= Date: Tue, 18 Oct 2016 16:45:26 -0400 Subject: [PATCH] forgotten-attachment: Fix checking logic. Don't bother searching the email for attachment keywords, if: - The feature is disabled - There's an attachment --- send.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/send.c b/send.c index 7f5d1371a..55f626eda 100644 --- a/send.c +++ b/send.c @@ -1895,8 +1895,9 @@ main_loop: } #endif - if (mutt_search_attach_keyword (msg->content->filename) && + if (quadoption(OPT_ATTACH) != MUTT_NO && !msg->content->next && + mutt_search_attach_keyword (msg->content->filename) && query_quadoption (OPT_ATTACH, _("No attachments, cancel sending?")) != MUTT_NO) { /* if the abort is automatic, print an error message */ -- 2.40.0