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 542416DE137F for ; Sat, 14 Dec 2019 03:39:19 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.064 X-Spam-Level: X-Spam-Status: No, score=-0.064 tagged_above=-999 required=5 tests=[AWL=-0.063, 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 sovPaURlX6Oa for ; Sat, 14 Dec 2019 03:39:18 -0800 (PST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 5ABC36DE0F7F for ; Sat, 14 Dec 2019 03:39:18 -0800 (PST) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1ig5lQ-00035N-6K; Sat, 14 Dec 2019 06:39:12 -0500 Received: (nullmailer pid 3929526 invoked by uid 1000); Sat, 14 Dec 2019 11:39:10 -0000 From: David Bremner To: ekeberg@kth.se, notmuch@notmuchmail.org Subject: Re: [PATCH 0/2] Limit attachment check to stop before forwarded message In-Reply-To: <20191212233536.7786-1-ekeberg@kth.se> References: <20191212233536.7786-1-ekeberg@kth.se> Date: Sat, 14 Dec 2019 07:39:10 -0400 Message-ID: <87mubvcf1d.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Sat, 14 Dec 2019 11:39:19 -0000 ekeberg@kth.se writes: > From: =C3=96rjan 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:". > > =C3=96rjan 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(-) > Merged to master, d