Click or drag to resize

Flag Class

Represents flag used by IMAP protocol to mark email messages. Static fields represent most common, system flags. You can use FlagMessageByNumber(Int64, Flag) and UnflagMessageByNumber(Int64, Flag) to set or remove a flag.
Inheritance Hierarchy
SystemObject
  Limilabs.Client.IMAPFlag

Namespace:  Limilabs.Client.IMAP
Assembly:  Mail (in Mail.dll) Version: 3.0.23341.1754
Syntax
[SerializableAttribute]
public class Flag

The Flag type exposes the following members.

Constructors
  NameDescription
Public methodFlag
Creates new instance of the Flag object with specified name.
Top
Properties
  NameDescription
Public propertyFullName
Gets the full name of this flag. This property includes backslash for system flags E.g. \SEEN, \UNFLAGGED, MYFLAG.
Public propertyIsSystemFlag
Gets information if this is a system flag. All system flags begin with "\" character.
Public propertyName
Gets the name of this flag. E.g. SEEN, UNFLAGGED.
Top
Methods
  NameDescription
Public methodEquals(Object)
Determines whether the specified object is equal to the current object. Names are compared case insensitive.
(Overrides ObjectEquals(Object).)
Public methodEquals(Flag)
Determines whether the specified Flag object is equal to the current one. Names are compared case insensitive.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns FullName property.
(Overrides ObjectToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Determines whether two Flag objects are equal.
Public operatorStatic memberInequality
Determines whether two Flag objects are not equal.
Top
Fields
  NameDescription
Public fieldStatic memberAll
Gets \ALL flag. It repesents all messages in the mailbox.
Public fieldStatic memberAnswered
Gets \ANSWERED flag. Message has been answered.
Public fieldStatic memberDeleted
Gets \DELETED flag. Message is "deleted" for removal by later EXPUNGE.
Public fieldStatic memberDraft
Gets \DRAFT flag. Message has not completed composition (marked as a draft).
Public fieldStatic memberFlagged
Gets \FLAGGED flag. Message is "flagged" for urgent/special attention.
Public fieldStatic memberForwarded
Gets the keyword that specifies that the message was resent to another email address, embedded within or attached to a new message. This keyword is set by the mail client when it successfully forwards the message to another email address.
Public fieldStatic memberMDNSent
Gets $MDNSent flag. It indicates if Message Disposition Notification (MDN) was sent for particular message. You can use SupportsMDNSent to check if server supports $MDNSent.
Public fieldStatic memberNew
Gets \NEW flag. It represents messages that have the Recent flag set but not the Seen flag. This is functionally equivalent to "(\RECENT \UNSEEN)".
Public fieldStatic memberOld
Gets \OLD flag. It represents messages that do not have the Recent flag set. This is functionally equivalent to "NOT \RECENT" (as opposed to "NOT \NEW").
Public fieldStatic memberRecent
Gets \RECENT flag (don't confuse it with Unseen). Message is "recently" arrived in this mailbox.
Public fieldStatic memberSeen
Gets \SEEN flag. Message has been read.
Public fieldStatic memberStar
Gets \* flag. It indicates, that it is possible to create new keywords by attempting to store those flags in the mailbox (SupportsCustomFlags). You can use FlagMessageByUID(Int64, Flag) or FlagMessageByNumber(Int64, Flag) to do so.
Public fieldStatic memberSubmitPending
Gets the keyword that designates the message as awaiting to be submitted. This keyword allows storing messages waiting to be submitted in the same mailbox where messages that were already submitted and/or are being edited are stored.
Public fieldStatic memberSubmitted
Gets the keyword that designates the message as being sent out.
Public fieldStatic memberUnanswered
Gets \UNANSWERED flag. It represents messages that do not have the Answered flag set.
Public fieldStatic memberUndeleted
Gets \UNDELETED flag. It represents messages that do not have the Deleted flag set.
Public fieldStatic memberUndraft
Gets \UNDRAFT flag. It represents messages that do not have the Draft flag set.
Public fieldStatic memberUnflagged
Gets \UNFLAGGED flag. It represents messages that do not have the Flagged flag set.
Public fieldStatic memberUnseen
Gets \UNSEEN flag. It represents messages that do not have the Seen flag set.
Top
Remarks
Exchange 2007 and 2010 do not support custom flags (keywords).
See Also