| Author |  | 
      
        | bara Newbie
 
  
 
 Joined: 26 January 2011
 Location: United Kingdom
 Online Status: Offline
 Posts: 4
 | 
          Hi,
           | Posted: 26 January 2011 at 2:57pm | IP Logged |   |  
           | 
 |  
 I'm currently using a trial version of the .Net IMAP Client in an application
 I'm developing.  Its been working very well apart from one error I keep getting
 when trying to upload a message.
 
 The destination server is Exchange 2010 running the latest patches.  I enabled
 the log and got the below:
 
 
 
| Quote: 
 
    
    | 
      
       | [22:46:23.81] [SEND] MBN00000021 APPEND "INBOX" (\Seen) "23-Feb-2009 10:32:47
 +0000" {16401+}\r\n
 [22:46:23.81] [SEND] Received: from psmtp.com (207.126.144.181) by
 pico.corleone.me.u ... size:612.0pt 792.0pt;\r\n     margin:72.0pt 72.0pt
 72.0pt 72.0pt;}\r\ndi [Data chunk of 8192 bytes sent.]
 [22:46:23.81] [SEND]  v.Section1\r\n     {page:Section1;} \r\n-->\r\n</style><!--
 [if gte mso 9]>< ... >\r\n</html>\r\n\r\n--
 _000_C511438CDC161C41B3C47B91D99ABA8D0245CD95UKE [Data chunk of 8192 bytes
 sent.]
 [22:46:23.82] [SEND] \r\n
 [22:46:44.36] [INFO] Error: IOException occurred. InnerException message
 follows: Unable to read data from the transport connection: A connection attempt
 failed because the connected party did not properly respond after a period of
 time, or established connection failed because connected host has failed to
 respond.
 
 |  |  |  
 I've tried a number of times and pretty confident there is not a connection
 problem (or timeout issue).  Any other thoughts?
 
 Thanks,
 
 Bara
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          First, it's not clear which version of MailBee.NET.dll is being used. Make sure you're on the latest version from http://www.afterlogic.com/updates/mailbee_net_2.zip
           | Posted: 27 January 2011 at 5:25am | IP Logged |   |  
           | 
 |  You will see that the build number is newer in the Assembly version line in the log.
 
 If this does not help, try Imap.UploadMessage overload with (MailMessage, String, String, String, Boolean, UidPlusResult) parameters and set batchMode to false. This will disable LITERAL+ IMAP extension.
 
 Also, you may try to increase timeout to 40 seconds (Imap.Timeout = 40000). For instance, with SMTP, Exchange 2010 may sometimes return its reply after 30 seconds. Maybe, something like that may occur with their IMAP as well.
 
 Regards,
 Alex
 
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | bara Newbie
 
  
 
 Joined: 26 January 2011
 Location: United Kingdom
 Online Status: Offline
 Posts: 4
 | 
          Thanks for the information.
           | Posted: 27 January 2011 at 9:02am | IP Logged |   |  
           | 
 |  
 I updated to the latest release (I was running something very close) but that
 didn't resolve the issue.  As my program is doing a lot of uploads I was pretty
 sure it wasn't an upload issue but I tried your method in any case.  Tried to
 increase the timeout value.  No luck.
 
 I identified the message that was causing the failure and moved it to another
 folder within the same IMAP mailbox and the script still failed when it got to
 that message.  I then moved it out to a local store and from the local store
 copied it back in and it then uploaded successfully.
 
 So, the good new is that it looks like it was some sort of corrupt message.  The
 bad news is that my Outlook and Thunderbird clients were able to copy the
 original message from the IMAP mailbox and upload it when I moved it.
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          I don't get it. Append is always performed between a local storage and an IMAP folder. You can't upload from one IMAP folder to another, that's copy, not upload.
           | Posted: 27 January 2011 at 9:58am | IP Logged |   |  
           | 
 |  
 To let us check what's going on there, please make a short sample which reads the problem message from the file and uploads it to the server (so that the error occurs) and send us the script and the file (make sure you've specified the valid credentials and the server name). Use Support / Request Support section on our web site to post this.
 
 Regards,
 Alex
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | bara Newbie
 
  
 
 Joined: 26 January 2011
 Location: United Kingdom
 Online Status: Offline
 Posts: 4
 | 
          Interesting, when saving to a file I don't get the same issue it seems.  I have
           | Posted: 28 January 2011 at 1:11am | IP Logged |   |  
           | 
 |  written a very simple test project to demonstrate the issue.
 
 I've cleared out all other email items from the source IMAP mailbox.  The
 demonstration tried to download the message from one source server and then
 upload it to another and that is when the error occurs.
 
 I'm more than happy to continue testing if you want.  I have submitted a support
 request with a test Visual Studio project which should demonstrate the issue.
 
 The copy process I was referring to was copying between two different IMAP
 mailboxes (rather than within a mailbox).
 
 Thanks
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          Thanks for the test project. The problem is now solved. Try this:
           | Posted: 28 January 2011 at 7:47am | IP Logged |   |  
           | 
 |  http://www.afterlogic.com/updates/mailbee_net_2.zip
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | bara Newbie
 
  
 
 Joined: 26 January 2011
 Location: United Kingdom
 Online Status: Offline
 Posts: 4
 | 
          Hi Alex,
           | Posted: 28 January 2011 at 7:52am | IP Logged |   |  
           | 
 |  
 Spot On.  Thanks.
 
 Just to let you know I've been very impressed with your support and components
 that I'll be buying it over the weekend.
 
 
   
 Bara
 | 
       
        | Back to Top |     | 
       
       
        |  |