[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: =?utf-8*de-de-?b?RG9uYXVkYW1wZnNjaGlmZmZhaHJ0c2thcGl0w6Ruc23DvHR6ZQ==?=



In <4256206D.6512@xxxxxxxxxxxxxxxxx> Frank Ellermann <nobody@xxxxxxxxxxxxxxxxx> writes:

>Alexey Melnikov wrote:

>>> Frank received no other support, and I propose to do
>>> nothing. If Ken wants to make these changes to USEFOR, then
>>> so be it. I regard this one as CLOSED.

>> I tend to agree.

>One last attempt, the subject of this article is a German fun
>word:  Donaudampfschifffahrtskapitänsmütze.  The 3 "fff" are a
>case of de-DE-1996, I use RfC 2231 and one B64 UTF-8 word.

>It is too long for RfC2047, therefore it's folded with a FWS.
>This violates a MUST in Usefor-03, but it's a valid RfC 2822
>mail header field.

It is indeed, but since it is in breach of RFC 2047, a conforming reading
agent SHOULD render it exactly as received ('=?...?=' and all). However,
some kind agents _might_ try to decode it for you.

The proper way to create that header is as:

Subject: =?UTF-8*de-DE-?B?RG9uYXVkYW1wZnNjaGlmZmZh?=
         =?UTF-8*de-DE-?B?aHJ0c2thcGl0w6Ruc23DvHR6ZQ==?=

That works because, if you have two encoded words with nothing but FWS
between them, then the decoder is required to ignore the FWS. And you have
to be careful where you make the split, because each encoded-word must
encode an integral number of octets (so after a multiple of 4 for base64,
and watch out for '=xy' in Q-P). And on top of that you must not split any
multi-octet character between the encoded words (which could be tricky in
UTF-8, where the number of octets per character is variable).

But any decent MUA ought to be able to do it. I tried it in Opera, and it
produced:

Subject: =?utf-8?Q?Donaudampfschifffahrtskapit?= =?utf-8?Q?=C3=A4nsm=C3=BCtze?=

OK, it used Q-P rather than Base 64, but it was quite happy to display the
original word without any spaces in the middle when read back.

BTW, your message achieved a Spammassassin score of 3 :-( .

-- 
Charles H. Lindsey ---------At Home, doing my own thing------------------------
Tel: +44 161 436 6131 Fax: +44 161 436 6133   Web: http://www.cs.man.ac.uk/~chl
Email: chl@xxxxxxxxxxxxxxxx      Snail: 5 Clerewood Ave, CHEADLE, SK8 3JU, U.K.
PGP: 2C15F1A9      Fingerprint: 73 6D C2 51 93 A0 01 E7 65 E8 64 7E 14 A4 AB A5