SocketTools .NET Edition

ImapClient.GetMessageMap Method ()

Returns a hash table containing information for all messages in the current mailbox.

[Visual Basic]
Overloads Public Function GetMessageMap() As IDictionary
[C#]
public IDictionary GetMessageMap();

Return Value

A Hashtable of MessageInfo structures with the message UID as the key.

Remarks

This method retrieves information for all messages in the current mailbox. This enables applications to correlate transient sequential message numbers with persistent UIDs for more reliable tracking across sessions. Both the sequential and unique message IDs are integer values, but they cannot be used interchangeably. The methods in this class, such as GetMessage and DeleteMessage expect sequential message numbers, not message UIDs.

If the mailbox contains a large number of messages, this method can cause the current thread to block while retrieving information from the server.

See Also