On November 9, 2005 at 4:46PM +0900,
tats (at vega.ocn.ne.jp) wrote:

> > The latest patch seems to always QP_CORRUPT the message. Why?
>
> In header, non-ASCII word must be converted to MIME encoded-word.

| +     charset = 'us-ascii'
| +     if nonascii.search(s):
| +             charset = 'utf-8'
| +     h = Header(s, charset, 50)
| +     return h.encode()

Note that h.encode() doesn't generate encoded-word if charset is 'us-ascii'.

--
Tatsuya Kinoshita

Attachment: pgpytgLTLKn9H.pgp
Description: PGP signature

Reply via email to