Re: [exim] Emails starting with a byte order mark (BOM)

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Jan Ingvoldstad
Data:  
Para: Wolfgang Breyha
CC: exim-users@exim.org, Michael Fischer v. Mollard
Asunto: Re: [exim] Emails starting with a byte order mark (BOM)
On Wed, Feb 26, 2014 at 1:33 PM, Wolfgang Breyha <wbreyha@???> wrote:

> Michael Fischer v. Mollard wrote, on 25/02/14 16:59:
> > <EF><BB><BF>Received: from [10.0.0.100] by gen3.XXX.com id K1sdIgJUfdo1;
> > Tue, 25 Feb 2014 08:56:59 -0600
> > Message-ID: <...@gen3.XXX.com>
>
> I see those, too. But I've no sample yet.
>
> > exim even recoded this to 0xEF 0xBB 0xBF, but I would prefer to reject
> > these mails with an ACL. Is there a way to achieve that in an ACL?
> verify =
> > header_syntax seems not to work.
>
> condition = ${if match{$message_headers_raw}{\N\xEF\xBB\xBFReceived\N}}
> should detect them. In my tests $message_headers works, too.
>


Perhaps it would be relevant to check for other byte order marks as well:

http://en.wikipedia.org/wiki/Byte_order_mark#Representations_of_byte_order_marks_by_encoding
--
Jan