ImapRecentCount Property
Gets the number of recent messages in the currently selected folder.

Namespace: MailBee.ImapMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public int RecentCount { get; }

Property Value

Type: Int32
The integer value containing the number of messages having "\Recent" flag in the currently selected folder, or 0 if no folder is selected.
Remarks

"\Recent" flag indicates a message is "recently" arrived in the folder. This session is the first session to have been notified about this message; if the session is read-write (the folder was selected using SelectFolder(String) method), subsequent sessions will not see "\Recent" set for this message. This flag can not be altered by the client.

If it is not possible to determine whether or not this session is the first session to be notified about a message, then that message SHOULD be considered recent.

If multiple connections have the same folder selected simultaneously, it is undefined which of these connections will see newly-arrived messages with "\Recent" set and which will see it without "\Recent" set.

To prevent messages from loosing "\Recent" flag (i.e. to monitor a folder keeping its state unchanged), the developer should select a folder using ExamineFolder(String) method instead of SelectFolder(String).

See Also