Pop3GetMessageUidFromIndex Method
Gets the Unique-ID string assigned to the specified message in the inbox on the server.

Namespace: MailBee.Pop3Mail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public string GetMessageUidFromIndex(
	int index
)

Parameters

index
Type: SystemInt32
The message number (in the range from 1 to InboxMessageCount) of the message. Can be negative in the range from -1 to -InboxMessageCount, i.e. -1 denotes the last e-mail in the inbox.

Return Value

Type: String
The Unique-ID string assigned to the specified message in the inbox on the server.
Exceptions
ExceptionCondition
MailBeeInvalidArgumentExceptionThe message index is not in the range from 1 to InboxMessageCount (by absolute value).
MailBeeExceptionAn error occurred and ThrowExceptions is true.
Remarks

Unique-ID is not the same value as MessageID. Unique-ID is assigned to each message in the inbox by the POP3 server, while MessageID value is assigned to the message by the mail composing program. For instance, if the same message was placed into the inbox twice, both copies will have the same MessageID value, but Unique-ID values will be different.

Unique-ID's is the preferred way of implementation of downloading new mails mechanism.

Note Note
This method may issue a network operation if the UID list has not yet been downloaded from the POP3 server during login (see InboxPreloadOptions). To make sure you have the local copy of the list, call GetMessageUids first (or its async version).
See Also