Gets all new messages in current mailbox from IMAP server.

Namespace: Jscape.Email
Assembly: Jscape.Email (in Jscape.Email.dll) Version: 2.4.5.0

Syntax

C#
public IEnumerator GetNewMessages()
Visual Basic
Public Function GetNewMessages As IEnumerator
Visual C++
public:
IEnumerator^ GetNewMessages()

Return Value

An Enumeration of new Imap messages.

Remarks

Upon retrieving new messages the messages are flagged as "read" and are no longer considered new.
To get the IDs of any new messages without retrieving the actual message content, use the GetNewMessageID()()()().

Examples

This example retrieves all new messages, if any.
CopyImap IssueCommand
IEnumerator em = myImap.GetNewMessages();
CopyImap IssueCommand
Dim em As IEnumerator = myImap.GetNewMessages()

See Also