Author |
|
david@pfl Newbie
Joined: 12 November 2010 Location: United States
Online Status: Offline Posts: 7
|
Posted: 12 November 2010 at 10:58am | IP Logged
|
|
|
I have an e-mail with an attachment that is being saved with an incomplete file name. The part of the name after the first space is missing, including the extension. The raw message data looks like this:
--Apple-Mail-10--296320181
Content-Transfer-Encoding: base64
Content-Type: application/pdf;
x-unix-mode=0644;
name=1234 abc def.pdf
X-WatchGuard-AntiVirus: scanned '1234abcdef.pdf'. clean action=allow
[large chunk of encoded data here]
But the file is saved as "1234". When I open the e-mail in Outlook Express, I see the full file name with the extension. I have tested a few other e-mail parsers, and they also save the file as just "1234" without the extension. Other e-mails with attachments that include spaces seem to work fine. Is the e-mail formatted incorrectly? Is the number at the beginning of the file name causing this?
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6107
|
Posted: 13 November 2010 at 1:15am | IP Logged
|
|
|
Quote:
Is the e-mail formatted incorrectly? |
|
|
I believe so. The parser expects header parameter to be ended with any whitespace, be it space, newline etc. To ensure that filename is available in full, it should be surrounded with quotes:
I've tested this behavior with several mailers, including Mozilla Thunderbird, and they do add quotes for the filenames.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
david@pfl Newbie
Joined: 12 November 2010 Location: United States
Online Status: Offline Posts: 7
|
Posted: 15 November 2010 at 2:53pm | IP Logged
|
|
|
Based on the raw data that I posted above, it looks like "Apple Mail 10" is formatting the e-mails this way. Even though the format is incorrect, could you provide a code update that would handle this?
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 16 November 2010 at 7:34am | IP Logged
|
|
|
Try this:
http://www.afterlogic.com/updates/mailbee_net_2.zip
regards,
Alex
|
Back to Top |
|
|
david@pfl Newbie
Joined: 12 November 2010 Location: United States
Online Status: Offline Posts: 7
|
Posted: 16 November 2010 at 8:54am | IP Logged
|
|
|
Great, thanks so much.
|
Back to Top |
|
|
ticketseta Newbie
Joined: 28 December 2010 Location: United States
Online Status: Offline Posts: 1
|
Posted: 28 December 2010 at 4:04am | IP Logged
|
|
|
Thank you
|
Back to Top |
|
|