Author |
|
sbrady Newbie
Joined: 02 March 2009
Online Status: Offline Posts: 12
|
Posted: 20 May 2009 at 11:08am | IP Logged
|
|
|
If I have a UID, and use the downloadEntireMessage method to get the method from the server, can I get the flags of the message from the MailMessage object?
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 20 May 2009 at 10:58pm | IP Logged
|
|
|
Messages don't contain flags. Flags are parts of IMAP envelopes which are universal IMAP containers. They contain messages (or just their parts), flags, some headers, etc.
So, you should use Imap.DownloadEnvelopes method to download messages with their flags.
parts allows you to specify which parts to download. EnvelopeParts.MessagePreview | EnvelopeParts.Flags should work for you. Also, don't forget to pass -1 in bodyPreviewSize to download entire message.
JFYI, DownloadEntireMessage method is just a wrapper for DownloadEnvelopes method.
Best regards,
Andrew
|
Back to Top |
|
|