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

Namespace: MailBee.ImapMail
Assembly: MailBee.NET.45 (in MailBee.NET.45.dll) Version: 10.0.45.502
Syntax
public int Unseen { get; }

Property Value

Type: Int32
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 Note
If the folder was selected in read-only mode (e.g. using ExamineFolder(String) method), the message flags will NOT be affected under any circumstances.
See Also