[imp] Headers decoding

Han Spruyt han.spruyt at ijsselgroep.nl
Thu Oct 18 13:50:04 UTC 2007


Sorry, typo from me, there -ARE- underscores instead of spaces in the string.
The correct header is:
From: =?iso-8859-1?Q?T=EBst_1=2C_Student?= <student1 at domain.com>

Han.



Quoting Matus UHLAR - fantomas <uhlar at fantomas.sk>:

> 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!
> --
> IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>
>





More information about the imp mailing list