| Author |  | 
      
        | grosquickkk Newbie
 
  
 
 Joined: 26 March 2013
 Location: France
 Online Status: Offline
 Posts: 8
 | 
          Hi, I use this
           | Posted: 27 March 2013 at 1:04pm | IP Logged |   |  
           | 
 |  
 
 
| Code: 
 
    
    | 
      
       | MailBee.ImapMail.EnvelopeCollection myMail = _Imap.DownloadEnvelopes (pCollection.ToString (), true, EnvelopeParts.MailBeeEnvelope | EnvelopeParts.MessagePreview   ,0); |  |  |  
 to get some information about a collection of emails.
 It's important to have the flag "seen" no updated while downloading the enleloppe, so I use
 
| Code: 
 
    
    | 
      
       | EnvelopeParts.MailBeeEnvelope | EnvelopeParts.MessagePreview |  |  |  
 But I need to have BodyPlainText and attachments too, but with this, it allways return an empty string.
 
 How to have those informations without downloading the email (important to not update the "seen" flag)
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          Supplying 0 for bodyPreviewSize means you only download headers, body will not be downloaded in such case. To download message body, supply a number of bytes for message body to be downloaded. If you put some big value, e.g. 100000000, this will result in downloading messages entirely yet Seen flag isn't going to be set.
           | Posted: 27 March 2013 at 11:23pm | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | grosquickkk Newbie
 
  
 
 Joined: 26 March 2013
 Location: France
 Online Status: Offline
 Posts: 8
 | 
          Thank you, it work fine
           | Posted: 28 March 2013 at 1:06am | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          Starting from 9.0, big value of "100000000" is not needed. Simply pass -2 (to avoid \Seen flag being set) or -1 (to have \Seen flag set) and this will download the entire message in both cases.
           | Posted: 23 July 2015 at 5:20am | IP Logged |   |  
           | 
 |  
 Regards,
 Alex
 | 
       
        | Back to Top |     | 
       
       
        |  |