Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2640 Attachment with non-english characters disappears on forward

I18n
closed-duplicate
nobody
Compose (426)
5
2010-09-27
2009-05-30
Drahomir Volny
No

When users receive email with attachments in non-english characters and encoding other then UTF-8 and click forward and then
"send", the attachments disappears (the attachment is not send). I've managed to reproduce the error with every email that has attchment like this:
Content-Type: application/msword;
name="=?iso-8859-2?Q?TEST=5Fobjedn=E1vka.doc?="
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="=?iso-8859-2?Q?TEST=5Fobjedn=E1vka.doc?="
When viewing this attachment name, everything is correct, but when trying to forward that message, on the compose page the name is displayed not correctly and then not send, even the file in data dir is not deleted. Second: When there are more attachments and one of them is non-english and the name is encoded iso-8859-2, when trying delete one attachment from compose page, all attachment disapear and the files in data dir are not deleted. It is not caused by plugins (I tryed to disable all and stil the same problem).
I have tryed on: SquirrelMail 1.4.19 Apache/2.0.61 with PHP 4.4.7 and PHP 5.2.8 and Courier IMAP

Similar problem is described here: http://www.nabble.com/Attachment-with-non-english-characters-disappears-when-forwarding-tt22619381.html#a22619381 and on google you can find some more related to this after the change to UTF-8 I thing versions after 1.4.13 are affected

Discussion

  • Nils O. Bekken
    Nils O. Bekken
    2009-08-17

    Same problem but with iso-8859-1 (as mentioned in the link above) filenames containing æøå among others. It worked with version 1.4.11 or by switching language to english in later versions before that translation were converted to UTF-8.

    PHP spits out the following error
    php error message:

    Notice: unserialize() [function.unserialize]: Error at offset 2067 of
    3667 bytes in /var/www/squirrelmail-testing/src/compose.php on line 370

    Warning: Cannot modify header information - headers already sent by
    (output started at /var/www/squirrelmail-testing/src/compose.php:370) in
    /var/www/squirrelmail-testing/src/compose.php on line 494

     
    • status: open --> pending-duplicate
     
  • This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
    • status: pending-duplicate --> closed-duplicate