Problems with charset gb2312 and mime headers

Stephen Swaney steve.swaney at fsl.com
Thu Jan 12 18:18:21 GMT 2006


    [ The following text is in the "iso-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

We have a client who is having a problem with mailscanner/spamassassin that
I have not seen before. Apparently mailscanner/spamassassin decodes replaces
the RFC1522 encoded header if it's in charset gb2312, it doesn't replace the
header if the header is encoded with UTF-8 or any other encoding.

Here is a sample

Subject: =?UTF-8?B?57q957qmMTHmnIjljp/msrnmnJ/otKfku7fmoLzov4XpgJ/kuIo=?=
 =?UTF-8?B?5omsM+e+juWFgw==?=

this is not modified by mailscanner/spamassassin and when you view the raw
source of the email in the mailbox it looks like:

Subject: =?UTF-8?B?57q957qmMTHmnIjljp/msrnmnJ/otKfku7fmoLzov4XpgJ/kuIo=?=
 =?UTF-8?B?5omsM+e+juWFgw==?=

which is correct

whereas

=?gb2312?B?xabUvDEx1MLUrdPNxtq79bzbuPHRuMvZyc/R7zPDwNSqIA==?=

is replaced with gobblygook in the raw email by mailscanner/spamassassin
when you view the raw source of the email in the mailbox as:

Subject: ŦԼ11ÔÂÔ­ÓÍÆÚ»õ¼Û¸ñѸËÙÉÏÑï3ÃÀÔª

Has anyone else run across this one?

Thanks,

Steve

Stephen Swaney
Fort Systems Ltd.
stephen.swaney at fsl.com
www.fsl.com

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!



More information about the MailScanner mailing list