| Author |  | 
      
        | jcharbo Newbie
 
  
 
 Joined: 31 January 2012
 Location: United States
 Online Status: Offline
 Posts: 5
 | 
          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.
           | Posted: 31 January 2012 at 1:04pm | IP Logged |   |  
           | 
 |  
 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 |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          Are you on the latest version of MailBee.NET Objects?
           | Posted: 01 February 2012 at 11:08am | IP Logged |   |  
           | 
 |  
 Regards,
 Alex
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | jcharbo Newbie
 
  
 
 Joined: 31 January 2012
 Location: United States
 Online Status: Offline
 Posts: 5
 | 
          yes, this is ocurring with the latest version 7 build.
           | Posted: 12 March 2012 at 8:52am | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          Make sure you're indeed on the latest build. It's available at http://www.afterlogic.com/updates/mailbee_net_2.zip
           | Posted: 12 March 2012 at 9:16am | IP Logged |   |  
           | 
 |  
 If the problem persists, please also let us know what you get with
 
 
| Code: 
 
    
    | 
      
       | Console.WriteLine(MailBee.Global.Version) |  |  |  
 Regards,
 Alex
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | jcharbo Newbie
 
  
 
 Joined: 31 January 2012
 Location: United States
 Online Status: Offline
 Posts: 5
 | 
          The return from your code is 7.1.4.348.
           | Posted: 12 March 2012 at 10:38am | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          Well the latest build is .357. If you require DLL built for .NET Framework 4 you can get it here.
           | Posted: 13 March 2012 at 12:28am | IP Logged |   |  
           | 
 |  
 Please let us know if the problem occurs after updating the DLL. Thanks.
 
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | jcharbo Newbie
 
  
 
 Joined: 31 January 2012
 Location: United States
 Online Status: Offline
 Posts: 5
 | 
          It is still occurring even with the 357 framework 4 dll.  Please advise.
           | Posted: 22 March 2012 at 12:39pm | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          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.
           | Posted: 23 March 2012 at 1:00am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | jcharbo Newbie
 
  
 
 Joined: 31 January 2012
 Location: United States
 Online Status: Offline
 Posts: 5
 | 
          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.
           | Posted: 26 March 2012 at 6:54am | IP Logged |   |  
           | 
 |  Thanks
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6167
 | 
          Well HelpDesk is not a public resource, but yes, contact form works fine too. Will check this and let you know.
           | Posted: 26 March 2012 at 6:57am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          Seems the server does not put filename information where it should but using ImapBodyStructure.SafeFilename property lets the application easily work around the problem.
           | Posted: 26 March 2012 at 8:32am | IP Logged |   |  
           | 
 |  
 Regards,
 Alex
 | 
       
        | Back to Top |     | 
       
       
        |  |