MIME encoding of headers

[email protected]
Newsgroups gmane.mail.exmh.devel
Message-ID <[email protected]>
Hi.

I've noticed what I think is a bug in the way exmh encodes 8bit stuff
in headers. I'm using 2.6.3 with nmh 1.1rc3 on Solaris 9.

Original subject:
 Subject: test å ä ö

Encoded subject:
 Subject: test =?iso-8859-1?Q?=E5?= =?iso-8859-1?Q?_=E4?= =?iso-8859-1?Q?_=F6?=

Another example:

Original subject:
 Subject: Min båt är snabb

Encoded subject:
 Subject: Min =?iso-8859-1?Q?b=E5t?= =?iso-8859-1?Q?_=E4r?= snabb

A third example that work correctly:

Original subject:
 Subject: Min båt har läckt

Encoded subject:
 Subject: Min =?iso-8859-1?Q?b=E5t?= har =?iso-8859-1?Q?l=E4ckt?=


The common denominator between the two faulty encodings are that they
have two words in a row that needs encoding.

//Christer

-- 
| Sys admin @ MEDIC              WWW: http://www.dtek.chalmers.se/            |
| Email: [email protected]   Phone: (0)31 772 5431, (0)707 53 57 57	      |
"I fought the loa and the loa won, I fought the loa and the loa won..."
        -- Dave Aronsson, a.s.r.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.