[mew-int 2342] Missing conversion of _ in coded Subject?
Havard Eidnes
he at example.com
Fri Aug 17 21:58:00 JST 2007
Hi,
I'm using mew version 5.2, and received a message with subject
Subject: Console =?ISO-8859-1?Q?p=E5_oden_och_thule_mm=2E?=
This was rendered in both the summary and the message buffer as
Subject: Console på_oden_och_thule_mm.
The way I read RFC 1522, I think this is wrong -- the underscores
within the encoded word should be translated back into spaces by
the decoding process.
It would seem to me that the cause for this is this "(not key)"
construct in this code segment out of mew-q-decode-string in
mew-bq.el -- it will always be nil due to the setq of key, so the
substitution of the space will never happen:
(setq key (or key ?=))
(while (< i len)
(setq char (aref qpstr i))
(cond
((and (not key) (char-equal char ?_))
(aset ret j mew-sp))
and replacing the last two lines with
((char-equal char ?_)
(aset ret j mew-sp))
makes it decode the subject correctly.
(BTW, the link to the beta source tar file is broken, it appears
to lack a . in the file name.)
This bug also appears to be present in the beta version (5.2.50).
Regards,
- Håvard
More information about the Mew-int
mailing list