Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: attachments not being handled correctly Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jcharbo
Newbie
Newbie


Joined: 31 January 2012
Location: United States
Online Status: Offline
Posts: 5
Posted: 31 January 2012 at 1:04pm | IP Logged Quote jcharbo

Hi, I'm using WPF with .net IMAP to retrieve messages from various sources. Things work correctly when retrieving mail from gmail. When retrieving mail from my default mail server provided through hostgator (when you host a site they provide mail through parallel plesk panel) attachments are not handled properly.

Specifically, attachments have the following issue:

When I loop through each part as imapbodystructure in envelopecollection(0).bodystructure.subparts, the part for the jpeg attachment is as follows:
contenttype=image/jpeg
filename=nothing
partid=3
size=675502
the bodyparams are: name="correct attachment name" and filename="correct attachment name"

My question is why is the filename empty but the contents of the bodyparams have the correct filename?
Back to Top View jcharbo's Profile Search for other posts by jcharbo
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 01 February 2012 at 11:08am | IP Logged Quote Alex

Are you on the latest version of MailBee.NET Objects?

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
jcharbo
Newbie
Newbie


Joined: 31 January 2012
Location: United States
Online Status: Offline
Posts: 5
Posted: 12 March 2012 at 8:52am | IP Logged Quote jcharbo

yes, this is ocurring with the latest version 7 build.
Back to Top View jcharbo's Profile Search for other posts by jcharbo
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 12 March 2012 at 9:16am | IP Logged Quote Alex

Make sure you're indeed on the latest build. It's available at http://www.afterlogic.com/updates/mailbee_net_2.zip

If the problem persists, please also let us know what you get with
Code:
Console.WriteLine(MailBee.Global.Version)


Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
jcharbo
Newbie
Newbie


Joined: 31 January 2012
Location: United States
Online Status: Offline
Posts: 5
Posted: 12 March 2012 at 10:38am | IP Logged Quote jcharbo

The return from your code is 7.1.4.348.
Back to Top View jcharbo's Profile Search for other posts by jcharbo
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 13 March 2012 at 12:28am | IP Logged Quote Igor

Well the latest build is .357. If you require DLL built for .NET Framework 4 you can get it here.

Please let us know if the problem occurs after updating the DLL. Thanks.

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


Joined: 31 January 2012
Location: United States
Online Status: Offline
Posts: 5
Posted: 22 March 2012 at 12:39pm | IP Logged Quote jcharbo

It is still occurring even with the 357 framework 4 dll. Please advise.
Back to Top View jcharbo's Profile Search for other posts by jcharbo
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 23 March 2012 at 1:00am | IP Logged Quote Igor

Can you please enable logging and provide us with the logs so that we could see what's going on behind the scenes? Ideally, we would need a test account login details, that would allow us to replicate the issue.

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


Joined: 31 January 2012
Location: United States
Online Status: Offline
Posts: 5
Posted: 26 March 2012 at 6:54am | IP Logged Quote jcharbo

I have posted all of the account info to test this with in a "contact us" submission on your site rather than post the details publicly.
Thanks
Back to Top View jcharbo's Profile Search for other posts by jcharbo
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 26 March 2012 at 6:57am | IP Logged Quote Igor

Well HelpDesk is not a public resource, but yes, contact form works fine too. Will check this and let you know.

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

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 26 March 2012 at 8:32am | IP Logged Quote Alex

Seems the server does not put filename information where it should but using ImapBodyStructure.SafeFilename property lets the application easily work around the problem.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 

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