Mail having problems decoding messages
I have been investigating a problem with Squirrelmail for quite some time and until recently had not found any clues as to why certain messages caused a problem. I now have found a clue and it seems to also apply to using Apple Mail.
Firstly I will describe what happens with Squirrelmail. We are running Squirrelmail on an XServe running Mac OS X 10.3.9 and it is the built-in version (now 1.4.5 but the problem also occurred with 1.4.4 and 1.4.3 and possibly older versions as well). Although I don't believe it is the culprit we are using Quickmail Pro Server 3.5.2.
When one of these problematic emails arrives and we try and read it (using a web-browser and Squirrelmail) we find the RFC message header is displayed in its entirety in the body section of the message window. Also if any files are attached they also are shown in raw encoded form in the body section of the window instead of being separately listed. Until recently I could not see any commonality between the messages that caused this. However I recently had several emails from the same person, all of which caused it and this provided a clue.
What I am finding is that emails using either a Charset of UTF-8 or Windows-1252 cause the problem,
e.g. Content-Type: text/plain; charset="UTF-8"
Messages with either no Charset defined or using US-ASCII or iso-8859-1 do not cause the problem.
I have also recently had some reports of users getting a message from Apple Mail saying the following :-
"This message cannot be displayed because of the way it is formatted. Ask the sender to send it again using a different format or email program.
multipart/mixed"
This was with Mail in Tiger Mac OS X 10.4.2.
Now the reason I think this problem and the Squirrelmail problem are related is that the message I particularly investigated in Apple Mail which caused the above error, was also UTF-8 encoded.
I have now been able to edit a copy of the raw version of that message and by changing the Charset from UTF-8 to US-ASCII _and nothing else_ I find that it then does work correctly in both Apple Mail and Squirrelmail.
For what its worth, as far as I can see the QuickMail 3.5 (now 3.5.3) client does not have a problem with any of these messages.
Has anyone else seen the above error from Apple Mail? If so can you check the raw message header and see what Charset it is in.