MailBee.NET Objects 3.1

Pop3.Last Method 

Gets the message number of the last message ever accessed in this mailbox during actual or all prior POP3 sessions.

public int Last();

Return Value

On success, the message number of the last message ever accessed, or 0 if no messages have ever been accessed in the mailbox; on failure, -1.

Remarks

Although LAST command was originally intended for locating new messages, it was deprecated in subsequent revisions of the POP3 protocol due. Use of this command is not recommended.

Exceptions

Exception Type Condition
MailBeeException An error occurred and ThrowExceptions is true.

See Also

Pop3 Class | MailBee.Pop3Mail Namespace