Red Hat Bugzilla – Bug 194457
squirrelmail cannot handle handle multibyte characters in attachment.
Last modified: 2007-11-30 17:07:25 EST
Description of problem:
After update squirrelmail to squirrelmail-1.4.6-5.el4, it can't handle
handle multibyte characters in the bese64 attachment correctly.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. accesss http://dhcp-82.brisbane.redhat.com/webmail/src/webmail.php
Please see Actual_results_01.png or Actual_results_02.png
Please see Expected_results.png
squirrelmail-1.4.3a-9.EL4 works fine, but the latest version can not
treat multibyte characters in the bese64 attachment.
It seems that a bug in formatBody() of functions/mime.php.
It passes the wrong args against translateText().
Or $body_message->header->getParameter('charset'), it may not
This event sent from IssueTracker by jnansi [Support Engineering Group]
Copied Fuchi's mail to another RHEL4 server and tried to read it in both
versions of Squirrelmail, with Japanese language mode set for the interface, and
Firefox web browser. The results that I'm seeing indicate that even the
previous version wasn't working properly.
The garbage text where the attachment text should be viewable is encoded in
UTF-8, while the rest of the Japanese text in both the interface and body are
EUC-JP. If you view this in either Firefox or Konqueror, you can read the
attachment text *ONLY* if you force the encoding to UTF-8. But then you can't
read anything else on the page, because everything else is EUC-JP encoded and it
In the case of the newer squirrelmail, it does fail to display UTF-8 where the
attachment text is.
Key questions here:
1) *WHY* has the Squirrelmail web interface always been in EUC-JP? This doesn't
match the encoding of most incoming mail (ISO-2022-JP) and it isn't UTF-8 or
2) It appears that the "Expected result" screenshot above is using Safari. Does
Safari behave differently in your tests from Firefox in rendering different
parts of the page in different encodings? In my tests the browsers cannot
handle this mixed encoding display that the old version of squirrelmail did.
To be clear, it seems to me that between 1.4.3a and 1.4.6, the view attachment
behavior went from one broken behavior to another broken behavior. Is this not
translateText() is added new arg in test5.patch. It is not good,
since translateText() is called the other main php, like view_text.php.
This event sent from IssueTracker by fuchi
Believed to be fixed in FC and this test package.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.