Re: Problems forwarding attachments with iso-8859-1 encoded filenames

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jun 18, 2010 at 01:53:19AM -0700, Tomas Kuliavas wrote:
>
>
>Helge Milde wrote:
>>
>> Hi!
>>
>> With my current setup, when I forward mails with attachments that have
>> iso-8859-1 encoded names, the attachments aren't sent (only the email
>> body).
>>
>
>Open SquirrelMail src/compose.php in some text editor.
>
>Find getAttachments function declaration (function getAttachments($message,
>and so on ...).
>
>find "$filename = decodeHeader($filename, false, false);" line without
>double quotes and change it to "$filename = decodeHeader($filename, false,
>false, true);" without double quotes.
>
>code does not convert filenames to target charset (fourth argument default
>is false). changed code will convert it to target charset if possible
>(fourth argument is true).
>
>check if it fixes your problem and other problems don't pop out.

Yes, this fixes the problem! I don't see any problems with the change either (I tried downloading the latin1 attachment, sending "normal" attachments and creating/sending new attachments).

Thanks for the help! I'll run with this change on, and if something weird happens, I'll send a mail.

-- 
Helge Milde, 69701808
www.monsternett.no


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux