MailBee.NET Objects 4.0

Envelope.MessageNumber Property

Gets the ordinal number of the message in the folder.

public int MessageNumber {get;}

Property Value

A positive integer value representing the ordinal index of the message in the IMAP4 folder.

Remarks

Unlike Uid values, ordinal message numbers can change due to deleting and expunging messages from the folder.

Note   MessageNumber value is guaranteed to be correct even if the envelope could not be parsed (IsValid is true). Thus, the developer can always locate the message whose envelope could not be parsed and which needs to be examined in some other way.

See Also

Envelope Class | MailBee.ImapMail Namespace