Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET POP3

 AfterLogic Forum : MailBee.NET POP3
Subject Topic: E-mail attachment loses file name Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
david@pfl
Newbie
Newbie


Joined: 12 November 2010
Location: United States
Online Status: Offline
Posts: 7
Posted: 12 November 2010 at 10:58am | IP Logged Quote david@pfl

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 View david@pfl's Profile Search for other posts by david@pfl
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6107
Posted: 13 November 2010 at 1:15am | IP Logged Quote Igor

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:

Code:
name="1234 abc def.pdf"


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 View Igor's Profile Search for other posts by Igor
 
david@pfl
Newbie
Newbie


Joined: 12 November 2010
Location: United States
Online Status: Offline
Posts: 7
Posted: 15 November 2010 at 2:53pm | IP Logged Quote david@pfl

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 View david@pfl's Profile Search for other posts by david@pfl
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 16 November 2010 at 7:34am | IP Logged Quote Alex

Try this:
http://www.afterlogic.com/updates/mailbee_net_2.zip

regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
david@pfl
Newbie
Newbie


Joined: 12 November 2010
Location: United States
Online Status: Offline
Posts: 7
Posted: 16 November 2010 at 8:54am | IP Logged Quote david@pfl

Great, thanks so much.
Back to Top View david@pfl's Profile Search for other posts by david@pfl
 
ticketseta
Newbie
Newbie
Avatar

Joined: 28 December 2010
Location: United States
Online Status: Offline
Posts: 1
Posted: 28 December 2010 at 4:04am | IP Logged Quote ticketseta

Thank you
Back to Top View ticketseta's Profile Search for other posts by ticketseta
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide