Author |
|
grosquickkk Newbie
Joined: 26 March 2013 Location: France
Online Status: Offline Posts: 8
|
Posted: 27 March 2013 at 1:04pm | IP Logged
|
|
|
Hi, I use this
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: 6103
|
Posted: 27 March 2013 at 11:23pm | IP Logged
|
|
|
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.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
grosquickkk Newbie
Joined: 26 March 2013 Location: France
Online Status: Offline Posts: 8
|
Posted: 28 March 2013 at 1:06am | IP Logged
|
|
|
Thank you, it work fine
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 23 July 2015 at 5:20am | IP Logged
|
|
|
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.
Regards,
Alex
|
Back to Top |
|
|