Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET IMAP

 AfterLogic Forum : MailBee.NET IMAP
Subject Topic: Checking Message Flags Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
sbrady
Newbie
Newbie


Joined: 02 March 2009
Online Status: Offline
Posts: 12
Posted: 20 May 2009 at 11:08am | IP Logged Quote sbrady

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 View sbrady's Profile Search for other posts by sbrady
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 20 May 2009 at 10:58pm | IP Logged Quote Andrew

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 View Andrew's Profile Search for other posts by Andrew
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide