Gets an int[] representing the IDs of 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 int[] GetNewMessageID()
Visual Basic
Public Function GetNewMessageID As Integer()
Visual C++
public:
array<int>^ GetNewMessageID()

Return Value

An int[] of new messages IDs, or null if no new messages are found.

Remarks

Each ID in int[] represents the corresponding new message id on server. You can then retrieve the new message using the GetMessage(Int32) method passing the message ID as an argument. To get all new messages automatically use the GetNewMessages()()()() method.

Examples

This example retrieves all new message IDs, if any.
CopyImap GetNewMessageID
int[] newMessages = myImap.GetNewMessageID();
CopyImap GetNewMessageID
Dim newMessages As int32() = myImap.GetNewMessageID()

See Also