Gets the number of the last message available in the current mailbox.
An integer value which specifies the number of messages.
The LastMessage property returns the number of the last message available in the currently selected mailbox. This value may be different than the value returned by the MessageCount property if one or more messages have been deleted. This is because the MessageCount property returns the number of available messages, and this value will decrement whenever a message is flagged for deletion. The LastMessage property value is constant and will always return the last message number in the mailbox, regardless if any messages have been deleted.
InternetMail Class | SocketTools Namespace