unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
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	[thread overview]
Message-ID: <20191212233536.7786-1-ekeberg@kth.se> (raw)

From: Örjan Ekeberg <ekeberg@kth.se>

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

         reply	other threads:[~2019-12-12 23:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-08 17:19 [BUG] emacs: notmuch-mua-attachment-check finds triggering string inside forwarded messages Örjan Ekeberg
2019-06-09 23:12 ` Daniel Kahn Gillmor
2019-12-12 23:35 ` ekeberg [this message]
2019-12-12 23:35   ` [PATCH 1/2] emacs: limit search for attachment to stop at first mime-part ekeberg
2019-12-12 23:35   ` [PATCH 2/2] test: extend test of attachment warnings ekeberg
2019-12-13 10:26   ` [PATCH 0/2] Limit attachment check to stop before forwarded message David Edmondson
2019-12-14 11:39   ` David Bremner
2021-12-25 18:04 ` [BUG] emacs: notmuch-mua-attachment-check finds triggering string inside forwarded messages David Bremner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191212233536.7786-1-ekeberg@kth.se \
    --to=ekeberg@kth.se \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).