Author |
|
zedekiah Groupie
Joined: 24 June 2009 Location: United States
Online Status: Offline Posts: 44
|
Posted: 30 June 2009 at 11:04am | IP Logged
|
|
|
is it after
imp.DownloadEnvelopes
or
after
imp.DownloadEntireMessage(env.Uid, true);
or none of the above?
|
Back to Top |
|
|
zedekiah Groupie
Joined: 24 June 2009 Location: United States
Online Status: Offline Posts: 44
|
Posted: 30 June 2009 at 11:08am | IP Logged
|
|
|
How do you get the Body from the Envelope?
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 01 July 2009 at 12:57am | IP Logged
|
|
|
Quote:
At What Point is An Email Considered Read |
|
|
Usually, IMAP servers mark a message as read when you completely download the message.
In order to download messages without marking them as read, fetch them via this overload of Imap.DownloadEnvelopes method:
The key is to use parts = EnvelopeParts.MessagePreview and bodyPreviewSize = -1. This will download entire messages within envelopes and should prevent setting SEEN flag. If setting bodyPreviewSize to -1 doesn't work for particular IMAP server you use (some IMAP servers have different behavior), try setting it to something way bigger than any message, say 999999999.
Quote:
How do you get the Body from the Envelope? |
|
|
In the same way as attachments. I've described it to you in this topic. In you need bodies and attachments, it's preferable to use the second approach, i.e. download envelope with message preview.
Best regards,
Andrew
|
Back to Top |
|
|