From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 3821A6DE1374 for ; Thu, 12 Dec 2019 15:36:26 -0800 (PST) Authentication-Results: arlo.cworth.org; dkim=pass (1024-bit key; secure) header.d=kth.se header.i=@kth.se header.b="iHkQeS+e"; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -2.696 X-Spam-Level: X-Spam-Status: No, score=-2.696 tagged_above=-999 required=5 tests=[AWL=-0.194, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id IFmxis-0mCFj for ; Thu, 12 Dec 2019 15:36:24 -0800 (PST) Received: from smtp-3.sys.kth.se (smtp-3.sys.kth.se [130.237.48.192]) by arlo.cworth.org (Postfix) with ESMTPS id 6F5516DE1373 for ; Thu, 12 Dec 2019 15:36:23 -0800 (PST) Received: from smtp-3.sys.kth.se (localhost.localdomain [127.0.0.1]) by smtp-3.sys.kth.se (Postfix) with ESMTP id A45C6A3EC for ; Fri, 13 Dec 2019 00:36:19 +0100 (CET) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-3.sys.kth.se ([127.0.0.1]) by smtp-3.sys.kth.se (smtp-3.sys.kth.se [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ssHN7NyxBzLu; Fri, 13 Dec 2019 00:36:19 +0100 (CET) X-KTH-Auth: ekeberg [85.229.200.172] DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kth.se; s=default; t=1576193779; bh=RYNB6FivfBQfw6EUTJn6FevoqaDgBJW+pMpSsW1yoYg=; h=From:To:Cc:Subject:Date; b=iHkQeS+e90qUgi50oF/EOK8gPsRx/DC4nWsCLl81BkYeT0k2XHUMVnJWDw1J3INKL JJaTXJYRXUIO3tRdwFPKuevhDRW9Y1opnOmxvSVlk1xCuD9tl6QftjL6WK731gapPf 0/cxlPCAfMR27lbSnlykvUpKRqd9zR6ZOEP37jnk= X-KTH-mail-from: ekeberg@kth.se Received: from swing.localdomain (c-acc8e555.09-723-73746f39.bbcust.telenor.se [85.229.200.172]) by smtp-3.sys.kth.se (Postfix) with ESMTPSA id A0404A3CB; Fri, 13 Dec 2019 00:36:17 +0100 (CET) From: ekeberg@kth.se To: notmuch@notmuchmail.org Subject: [PATCH 0/2] Limit attachment check to stop before forwarded message Date: Fri, 13 Dec 2019 00:35:34 +0100 Message-Id: <20191212233536.7786-1-ekeberg@kth.se> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Dec 2019 23:36:26 -0000 From: Örjan Ekeberg This is a simple patch to notmuch-mua-attachment-check to make it stop searching for mathing "attachment"-words when reaching a forwarded message (or anything starting with "\n<#"). This avoids the false warnings that always occur when forwarding messages originating from MS-Exchange, since they contain a header "MS-Has-Attach:". Örjan Ekeberg (2): emacs: limit search for attachment to stop at first mime-part test: extend test of attachment warnings emacs/notmuch-mua.el | 25 ++++++++++++++----------- test/emacs-attachment-warnings.el | 12 ++++++++++++ 2 files changed, 26 insertions(+), 11 deletions(-) -- 2.24.0