| Author |  | 
      
        | soccer2d Newbie
 
  
  
 Joined: 02 May 2007
 Location: United States
 Online Status: Offline
 Posts: 11
 | 
          I am performing the task of DownloadEnvelopes with following code
           | Posted: 10 November 2010 at 2:52pm | IP Logged |   |  
           | 
 |  
 AddHandler imp.EnvelopeDownloaded, AddressOf OnEnvelopeDownloaded
 Try
 Dim msgs As EnvelopeCollection = imp.DownloadEnvelopes(Imap.AllMessages, False, EnvelopeParts.All, -1)
 
 Catch
 myUIDs.Save()
 Finally
 RemoveHandler imp.EnvelopeDownloaded, AddressOf OnEnvelopeDownloaded
 End Try
 
 but in the event OnEnvelopeDownloaded when the envelope is downloaded sometimes I get a env.downloadedmessage.messagepreview = nothing, which of course is the part I need the most.
 
 I have the logging turned on and here is the error I believe.
 
 [17:45:18.61] [RECV] Conversion from string "" to type 'Integer' is not valid. [Literal of length 57.]
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          We suspect this might be caused by invalid server response. Is it possible to provide us with a test account we could use to investigate this? If yes, please use our HelpDesk to provide us with the credentials.
           | Posted: 11 November 2010 at 2:10am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          Initial check shows that "Conversion from string "" to type 'Integer' is not valid." is not an error message from MailBee, it's the subject of the email (the email itself is a bug report). In particular, the length of "Conversion from string "" to type 'Integer' is not valid." is exactly 57 characters which strictly matches "[Literal of length 57.]" message from MailBee.
           | Posted: 11 November 2010 at 6:22am | IP Logged |   |  
           | 
 |  
 Regards,
 Alex
 | 
       
        | Back to Top |     | 
       
       
        |  |