Page 1 of 1

Long attachment file name being truncated

Posted: Sun Nov 04, 2007 9:43 am
by phook
I am trying to send a pdf file as an attachment with a long file name "ETicket7428-Lets Get Started in Digital Photography (Intensive Weekend) Level 1.pdf". When using V2 of Swift the file is sent OK with the file name intact. When using V3 the name is split into 2 parts, the first 59 chars. long and the remainder (see extract from headers below). The remainder is displayed in the email client. Is there anyway to retain the full file
name?

V3
Content-Type: application/pdf;
name*0="ETicket7424-Lets Get Started in Digital Photography (Intens";
name*1="ive 4 Morning) Level 1.pdf"
Content-Transfer-Encoding: base64
Content-Description: ETicket7424-Lets Get Started in Digital Photography
(Intensive 4 Morning) Level 1.pdf
Content-Disposition: attachment;
filename*0="ETicket7424-Lets Get Started in Digital Photography (In";
filename*1="tensive 4 Morning) Level 1.pdf"

V2
Content-Type: application/octet-stream; name="ETicket7428-Lets Get Started in Digital Photography (Intensive Weekend) Level 1.pdf";
Content-Transfer-Encoding: base64
Content-Description: ETicket7428-Lets Get Started in Digital Photography (Intensive Weekend) Level 1.pdf
Content-Disposition: attachment; filename="ETicket7428-Lets Get Started in Digital Photography (Intensive Weekend) Level 1.pdf"

Posted: Tue Nov 13, 2007 9:35 am
by afwt
I am experiencing the exact same thing. Sometimes it even messes up the remaining of the filename, but I guess that is related to the filename itself....

I tried sending emails from GMail, Outlook, PHPMailer and SwiftMailer, and SM is the only one that is splitting attachment headers into multiple lines... :-(

Re: Long attachment file name being truncated

Posted: Tue Feb 26, 2008 9:03 pm
by phook
Does anybody know if this has been fixed or if it is something I am doing wrong - thanks in advance

Re: Long attachment file name being truncated

Posted: Wed Feb 27, 2008 5:56 am
by Chris Corbyn
Fixed in version 4, but that's not released yet sorry.

Re: Long attachment file name being truncated

Posted: Wed Feb 27, 2008 6:21 am
by phook
Thanks Chris - cant wait for V4. Hope you are enjoying Melbourne