[imp] Headers decoding

Matus UHLAR - fantomas uhlar at fantomas.sk
Thu Oct 18 13:24:03 UTC 2007


On 17.10.07 22:48, Han Spruyt wrote:
> An encoded string in a From: header like this:
> 
> From: =?iso-8859-1?Q?T=EBst 1=2C Student?= <student at domain.com>
> 
> is parsed like Tëst 1, Student <student at domain.com>
> 
> So, the display name is not between quotes. It is fed like this in the  
> address processing causing headaches of course because of the comma  
> being an address separator.
> 
> Searching the internet I found several statements that the  
> encoding(whithout quotes) is RFC compliant, but not being an RFC  
> expert at all.....

that encoding is surely not RFC compliant. There must not be spaces in encoded
word. They have to be replaced with underscores, or =20 strings.
(see rfc 2047, section 2)

I know this is not what you asked for, but I couldn't help myself. Even
SpamAssassin gives high score here.

-- 
Matus UHLAR - fantomas, uhlar at fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
10 GOTO 10 : REM (C) Bill Gates 1998, All Rights Reserved!


More information about the imp mailing list