MailBee.NET Objects 3.1

Imap.Unseen Property

Gets the ordinal message number of the first message which does not have "\Seen" flag set.

public int Unseen {get;}

Property Value

The integer value containing one-based message number of the first unseen message in the currently selected folder, or 0 if there are no unseen messages in the folder or no folder is selected.

Remarks

Messages are flagged with "\Seen" tag when they are downloaded completely. For instance, if only a header section of an unseen message is downloaded, the message will remain unseen. When the message is downloaded entirely, it will be flagged "\Seen".

Note   If the folder was selected in read-only mode (e.g. using ExamineFolder method), the message flags will NOT be affected under any circumstances.

See Also

Imap Class | MailBee.ImapMail Namespace