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 A2B8B6DE137F for ; Fri, 13 Dec 2019 02:26:42 -0800 (PST) Authentication-Results: arlo.cworth.org; dkim=pass (2048-bit key; unprotected) header.d=dme-org.20150623.gappssmtp.com header.i=@dme-org.20150623.gappssmtp.com header.b="IlKDTQg2"; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.255 X-Spam-Level: X-Spam-Status: No, score=0.255 tagged_above=-999 required=5 tests=[AWL=-0.397, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_NEUTRAL=0.652, UNPARSEABLE_RELAY=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 A_RiC1pK7SU3 for ; Fri, 13 Dec 2019 02:26:41 -0800 (PST) Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by arlo.cworth.org (Postfix) with ESMTPS id 7506F6DE1374 for ; Fri, 13 Dec 2019 02:26:41 -0800 (PST) Received: by mail-wr1-f65.google.com with SMTP id b6so6102724wrq.0 for ; Fri, 13 Dec 2019 02:26:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dme-org.20150623.gappssmtp.com; s=20150623; h=to:subject:in-reply-to:references:from:date:message-id:mime-version :content-transfer-encoding; bh=ajvFa3vncJ3c+8Q/hDVU3FJJSWRl4bpKYaCBjCgBK9M=; b=IlKDTQg2mluR4JWDXZp37yz6JSXGOg1Kh2d8EaJgh/XNKm4BuD/T7UISHisTrmMoke 88ksKFOxK6oLxbHudB+0KQ+uXc3Pfg0WFsj0Md6TDwRMP7u5aWQ8BPzG/qr9hfo/4gSI n1Z2oDpljzGFbJUdK0UXT0Gojnxu1n35DiDn0gcj8r+ZG/5hXmQv3UTT+SDkjdVbFDTG OJc2Y0emWsfTIUsahYx8vT4L7SUXa9drOA+ZKiO2Q9J2UqQGUM/9myC4cqwdwcsUHmVt inZARPwmNe84Bio1xMaMe5UUWY+MSma7BpiBY0IT3KiUvsYTOQoMELLXk2UK74dXuIVH SZbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:subject:in-reply-to:references:from:date :message-id:mime-version:content-transfer-encoding; bh=ajvFa3vncJ3c+8Q/hDVU3FJJSWRl4bpKYaCBjCgBK9M=; b=mP+wl6suC+2U7R8F0sS2CULPvCh/Z8memehJWhgoXmkI9zWMc6zsfbwIU+cD3RkHTE USJu8TIqd+iAmZseqfBcKQvRaJ45kkMHKgvRaH8mdMxoxecpBlJ8Hcaui3wywRrPezYM qlg1gpbj9fnIH6o8wSoqPcypFiNKyBAzz13b7VJkmb6UD7WqTliyJ4o7kgFkat7Fp1AV xYeVh7OiulZIzCeG+NndGbFVgDWVgMTBFfxDTXk6x4RW6hr0f7w0k9OovmEi9yXpy/Fo Yz5OaOy6LKtcPHNRFMVAIFWLMD8OVmbhhjQUyi6XGaiYj8VjPem/ShiEiX/Sxz1OiPwp Yndg== X-Gm-Message-State: APjAAAVTbgRgDSxDt+UK8mWZXhExosdbnpQVeRtI0bL0tQW06nn08CK2 979EkfLbcP2JQgQInWi03y3qHw== X-Google-Smtp-Source: APXvYqyGdmj/UuncQhzeaIOZvpJwvCqZmtgNOg00CfP5qPigggnROmpqvr914pfRr7aj3NAgyqWkgA== X-Received: by 2002:adf:e58d:: with SMTP id l13mr11404283wrm.135.1576232799868; Fri, 13 Dec 2019 02:26:39 -0800 (PST) Received: from disaster-area.hh.sledj.net (disaster-area.hh.sledj.net. [81.149.164.25]) by smtp.gmail.com with ESMTPSA id o185sm9490974wmb.40.2019.12.13.02.26.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2019 02:26:39 -0800 (PST) Received: from localhost (disaster-area.hh.sledj.net [local]) by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id d93a18b0; Fri, 13 Dec 2019 10:26:32 +0000 (UTC) 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> X-HGTTG: heart-of-gold From: David Edmondson Date: Fri, 13 Dec 2019 10:26:31 +0000 Message-ID: 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: Fri, 13 Dec 2019 10:26:42 -0000 On Friday, 2019-12-13 at 00:35:34 +01, ekeberg@kth.se wrote: > 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(-) Looks good - thanks for doing this. (Apologies for the resend - hit 'r' not 'R' the first time.) dme. --=20 I'd come on over but I haven't got a raincoat.