Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: Attachment.SavedAs incorrect when saving Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
brian.lai
Newbie
Newbie


Joined: 15 November 2011
Location: United States
Online Status: Offline
Posts: 8
Posted: 15 November 2011 at 10:35am | IP Logged Quote brian.lai

I'm currently running on MailBee.NET version 5.9.2.201 so it is an older version but haven't seen anything in the upgrade notes that would leave me to believe this issue has been fixed.

We currently have the MailMessage.Parser.HeadersAsHtml set as TRUE.

I am currently processing an email with an attachment with an '&' in the filename. The issue we're having is when saving the file to disk we would like to append a guid onto the beginning of it so we need to use the Attachment.Save() method.

The issue is when calling the Attachment.Save(Guid.NewGuid() + "_FileName_&_Test.pdf", true), it will save the file to disk with the name "0d1d473b-8c04-4385-9dcc-018afaec452b__FileName_&_Test.Pdf", but when looking into the Attachment.SavedAs property it lists the file as: "0d1d473b-8c04-4385-9dcc-018afaec452b_FileName_&_Test.Pdf".

How do I prevent this? Is this a known bug or is there a workaround w/o setting HeadersAsHtml as false?
Back to Top View brian.lai's Profile Search for other posts by brian.lai
 
brian.lai
Newbie
Newbie


Joined: 15 November 2011
Location: United States
Online Status: Offline
Posts: 8
Posted: 15 November 2011 at 10:38am | IP Logged Quote brian.lai

Ahh forum accidently html encoded by issue as well.

The Attachment.SavedAs property equals: 0d1d473b-8c04-4385-9dcc-018afaec452b_FileName_amp;_Test.Pdf

the amp; above has an & in front of it as course, it won't let me post in the forum w/o converting it to an &.
Back to Top View brian.lai's Profile Search for other posts by brian.lai
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6092
Posted: 15 November 2011 at 10:19pm | IP Logged Quote Igor

The first thing to do is to try replicating the problem with current version of the product. In every new version, we keep adding bugfixes and improvements, it's not possible to list them all, and version 5.9 is too old so there's a great chance the upgrade will help.

In case if the issue persists, please let us know.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
brian.lai
Newbie
Newbie


Joined: 15 November 2011
Location: United States
Online Status: Offline
Posts: 8
Posted: 16 November 2011 at 1:54pm | IP Logged Quote brian.lai

I got the latest version of the product and the issue is still there.
Back to Top View brian.lai's Profile Search for other posts by brian.lai
 
brian.lai
Newbie
Newbie


Joined: 15 November 2011
Location: United States
Online Status: Offline
Posts: 8
Posted: 12 January 2012 at 2:18pm | IP Logged Quote brian.lai

Can anybody help???
Back to Top View brian.lai's Profile Search for other posts by brian.lai
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6092
Posted: 12 January 2012 at 11:05pm | IP Logged Quote Igor

Can you please confirm this occurs for current DLL build?

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

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