It seems that the decode_header function in email.Header fails when the string is in the following form,
'=?gb2312?Q?=D0=C7=C8=FC?=(revised)' That's when a non-encoded string follows the encoded string without any whitespace. In this case, decode_header function treats the whole string as non-encoded. Is there a work around for this problem? Thanks. -- http://mail.python.org/mailman/listinfo/python-list