SiT! Bugs - SiT!
View Issue Details
0001275SiT!inbound emailpublic2010-04-14 22:252013-07-06 17:24
ivan 
paulh 
normalminorhave not tried
resolvedfixed 
3.60 LTS 
3.68Current SVN 
0001275: non-ascii characters in inbound email attachment filenames are corrupted
If a filename of an attachment to an inbound email uses non-ascii characters the file is corrupted. More often than not it seems you can still view and save the attachment but the filename is nonsense.

TBH I'm not sure how valid it is to have strange characters in attachment filenames but we ought to handle it better even if we end up naming the attachment untitled.odf or something like that.

I tried various filenames using the test string data at http://sitracker.org/wiki/Development/Test_Data [^]
No tags attached.
related to 0001100closed ivan SQL Error importing email with odd named attachment 
related to 0000774closed kieran Attachments with accented characters like "é" in the filename do not get imported 
has duplicate 0001371resolved paulh Bad cirillic attachments names. 
Issue History
2010-04-14 22:25ivanNew Issue
2010-04-14 22:25ivanRelationship addedrelated to 0001100
2010-06-17 12:43ivanRelationship addedrelated to 0000774
2010-06-18 14:56ivanSummarynon-ascii characters in inbound email attachments are corrupted => non-ascii characters in inbound email attachment filenames are corrupted
2010-07-20 10:53ivanRelationship addedhas duplicate 0001371
2010-08-01 12:50paulhNote Added: 0003340
2010-08-01 12:50paulhStatusnew => confirmed
2013-01-19 19:36paulhNote Added: 0004654
2013-01-19 19:36paulhAssigned To => paulh
2013-01-19 19:36paulhStatusconfirmed => resolved
2013-01-19 19:36paulhResolutionopen => fixed
2013-01-19 19:36paulhFixed in Version => Current SVN
2013-07-06 17:24ivanTarget Version => 3.68

Notes
(0003340)
paulh   
2010-08-01 12:50   
After reading http://tools.ietf.org/html/rfc2231 [^] and http://en.wikipedia.org/wiki/MIME [^] I'm still not 100% certain this is valid though as other clients (gmail, thunderbird) etc display this properly and their nothing to stop users sending emails with such attachments we should probably support this
(0004654)
paulh   
2013-01-19 19:36   
r7559 and 21e93d4 resolve this, we where encoding file names twice