Attachment filename gets corrupted

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

xming
Posts: 15
Joined: Sun May 28, 2006 5:10 pm

Attachment filename gets corrupted

Postby xming » Fri Jan 26, 2007 6:15 am

Hi,

We have upgraded to 11 GA, and all those small issues are solved, except this one: the attachemnet filename gets corrupted, actually the file extension is chopped off so a lot of people cannot open the files automatically and they have to guess the file type

original MIME header

Code: Select all

Content-Type: image/jpeg;
   name="=?BIG5?B?s+zFUSAxMDggUENTIFNPQ0tFVCBTRVQgUElDLmpwZw==?="
Content-Transfer-Encoding: base64
X-Attachment-Id: 0.1
Content-Disposition: attachment; filename="=?BIG5?B?s+zFUSAxMDggUENTIFNPQ0tFVCBTRVQgUElDLmpwZw==?="


MIME header after passing thru scalix

Code: Select all

--scalix-part-0022a22bb1=_01
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
   filename="=?UTF-8?Q?=E5=96=AC=E9=9C=B8_108_PCS_SOCKET_SET_PIC.?="


Any work arounds?

kanderson

Postby kanderson » Fri Jan 26, 2007 11:38 am

I know there's an issue in Bugzilla right now where filenames are truncated if they are longer than ~50 characters. This seems to only affect the webclient.

Is that consistent with what you are seeing?

xming
Posts: 15
Joined: Sun May 28, 2006 5:10 pm

Postby xming » Fri Jan 26, 2007 7:38 pm

This is consistent with almost all attachments encoded in Big5, and it's not only the webmail but also with the outlook connector.

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Sat Jan 27, 2007 6:12 am

based on quick analysis, this looks like a bug.... :-(

I've opened http://bugzilla.scalix.com/show_bug.cgi?id=14605 to track.

Florian.
Florian von Kurnatowski, Die Harder!

xming
Posts: 15
Joined: Sun May 28, 2006 5:10 pm

Postby xming » Mon Jan 29, 2007 8:48 am

Thank you florian,

Why does scalix even touch the mime headers? Isn't it possible to leave the filename encoded in Big5? Or you you want everything in UTF?

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Mon Jan 29, 2007 10:01 am

I think we need the filename in UTF-8 for Outlook to work properly; also, not sure about web browsers - do they typically understand Big5? Whatever, UTF-8 should work on more platforms than Big5 and the conversion should be lossless, so..... I think this is probably a relatively minor conversion logic problem and hope we have time to look into it soon.

Cheers,
Florian.
Florian von Kurnatowski, Die Harder!

xming
Posts: 15
Joined: Sun May 28, 2006 5:10 pm

Postby xming » Mon Jan 29, 2007 2:24 pm

Thank you for the explanation, I would expect if someone is interested reading BIG5 encoded files then his PC has that :)

Anyway converting to UTF8 is better but not needed as the original sender sent it this way. Just my 2 cents.

I will follow the bugzilla and thanks again

xming


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 12 guests