Re: notmuch new: emails with BOM are ignored

Subject: Re: notmuch new: emails with BOM are ignored

Date: Sun, 05 Mar 2017 08:23:36 -0400

To: Andreas Amann, notmuch@notmuchmail.org

Cc:

From: David Bremner


Andreas Amann <a.amann@ucc.ie> writes:

> Hi,
>
> I recently received some spam mails, which have a utf-16 byte order mark
> (BOM) U+FEFF as the first character in one of their "Received:"
> lines. When I run "notmuch new" I get the following:
>
> Note: Ignoring non-mail file: /home/user/Mail/new/path_to_email_with_BOM
>
> Could this be a bug in notmuch? Possible emails with BOM are not "legal"
> anyhow, but in my opinion it would be better to simply ignore the BOM.
>
> I am using notmuch 0.18.
>
> Andreas
>

I couldn't duplicate this old report with current notmuch. I replaced
"Received: " with "Received: <BOM>" but the message was picked up by
notmuch new.

d

Thread: