Re: [Exim] is it possible to covert 8bit subjects to quoted-…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Andreas Metzler
Date:  
À: exim-users
Sujet: Re: [Exim] is it possible to covert 8bit subjects to quoted-printable automatically?
On Thu, Sep 11, 2003 at 11:26:15AM +0000, Michael V. Sokolov wrote:
> %Subj% with exim?


You could use ${rfc2047:<string>} and headers_add/remove. But even if
you did it would not help you, because there is no reliable way[1] to
identify the used charset and ${rfc2047 only supports ISO-8859-1 so
you would change e.g. "This € is a Euro-symbol" to
"=?ISO-8859-1?Q?This_=A4_is_a_Euro-symbol?=" which is not an
Euro-symbol at all but "currency sign".

I know that is a lame example but if you took
russian/chinese/UTF-8/whatever input and declared it was ISO-8859-1
you'd really make things worse.
                 cu andreas
[1] statistical analysis with databases of all natural langauages to
check against might work ;-)
--
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"