Truncated subject Header
One of my colleage says that the subject of a mail received by Sun Jes Messaging Server is truncated at the beginning.
I try to see the source but all I can read is the following :
Date: Wed, 24 Jan 2007 19:09:14 +0100
From: Regards Economiques <regards@ires.ucl.ac.be>
Subject:
=?ISO-8859-1?B?TGUgUGxhbiBkJ0FjY29tcGFnbmVtZW50IGV0IGRlIFN1aXZpIGRlcyBjaPRtZXVy cw==?=
How could I decode the subject ?
Thanks
Sun Java(tm) System Messaging Server 6.2-7.05 (built Sep 5 2006)
libimta.so 6.2-7.05 (built 12:08:11, Sep 5 2006)
SunOS mailstore-1-1 5.10 Generic_Patch i86pc i386 i86pc
# 1
Hi,
> Subject:
> =?ISO-8859-1?B?TGUgUGxhbiBkJ0FjY29tcGFnbmVtZW50IGV0IG
> lIFN1aXZpIGRlcyBjaPRtZXVycw==?=
This subject is Base64 encoded (note the B in between the two question marks). The data was encoded by the email client which sent the email due to the subject contents containing 8-bit characters in the ISO-8859-1 character set. You are not allowed to send 8-bit characters in header fields.
Cutting/pasting the subject into a base64 decoder it translates to:
"Le Plan d'Accompagnement et de Suivi des ch�meurs"
The ? is a character which couldn't be decoded correctly (due to the base64 decoder not knowing it's encoding method -- i.e. ISO-8859-1).
> How could I decode the subject ?
Use:
http://www.opinionatedgeek.com/dotnet/tools/Base64Decode/
Cut/paste in the data in between the last and second last question mark i.e.
TGUgUGxhbiBkJ0FjY29tcGFnbmVtZW50IGV0IGlIFN1aXZpIGRlcyBjaPRtZXVycw
As far as I can tell this looks correct (but I don't speak French so what would I know ;)). When the user says the subject is 'truncated', which email client are they viewing it in (UWC/Messenger Express/Mozilla Thunderbird/Outlook Express etc. etc.) and how much of the subject I provided above do they see?
Regards,
Shane.