Re: [BUG] emacs: notmuch-mua-attachment-check finds triggering string inside forwarded messages

Subject: Re: [BUG] emacs: notmuch-mua-attachment-check finds triggering string inside forwarded messages

Date: Sat, 25 Dec 2021 14:04:17 -0400

To: Örjan Ekeberg, notmuch@notmuchmail.org

Cc:

From: David Bremner


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

> Hi all,
>
> I have found what seems to be a bug, or at least a misbehaviour of the
> "missing attachment warning" implemented by the otherwise so nice
> notmuch-mua-attachment-check.
>
> It works fine to detect the regexp for attachments in simple messages.
> The problem is that it also triggers the warning if a matching string is
> present inside a forwarded message.  This is particularly annoying when
> forwarding messages originating from MS-Exchange since those seem to
> always include a hidden header "X-MS-Has-Attach" where the word "Attach"
> constantly leads to false missing-attachment warnings.
>
> Would it be possible to somehow restrict the regexp search to the part
> of the message actually being authored?  Would it be too simplistic to
> end the search at the first occurrence of "\n\n<#" ?

marking this as fixed as the proposed patches were applied several years
ago.

d
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: