Command IMAP_MsgNumToUID

4D Internet Commands

IMAP_MsgNumToUID

version 6.8.1


IMAP_MsgNumToUID (imap_ID; msgNum; unique_ID) Integer

ParameterTypeDescription
imap_IDLongintReference to an IMAP login
msgNumLongintMessage number
unique_IDLongintMessage unique identifier value

Function result Integer Error code

Description

The IMAP_MsgNumToUID command converts a message number within the list of messages in the current mailbox referenced by imap_ID to its current unique_ID value.

imap_ID is a long integer reference to an open connection created with IMAP_Login.

msgNum is a long integer returned containing the current message number (its position within the current message list) of the item identified by unique_ID. If the unique_ID cannot be found on the server, a zero is returned in msgNum and no error is returned.

unique_ID is a long integer value returning the Unique ID of a message to be located on the IMAP server.

See Also

IMAP_SetCurrentMB, IMAP_UIDToMsgNum.