[BUG] emacs: notmuch-mua-attachment-check finds triggering string inside forwarded messages
ekeberg at kth.se
Wed May 8 10:19:18 PDT 2019
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
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<#" ?
More information about the notmuch