MailBee.NET Objects 4.0

Imap.MessageStatus Event

Occurs when the IMAP4 server informs the client of any changes to mail messages in the currently selected folder.

public event ImapMessageStatusEventHandler MessageStatus;

Event Data

The event handler receives an argument of type ImapMessageStatusEventArgs containing data related to this event. The following ImapMessageStatusEventArgs properties provide information specific to this event.

Property Description
Flags Gets the new value of the message flags.
MessageCountOrIndex Gets the count or index of message(s) mentioned in the current response.
State Gets a reference to the object which was supplied by the developer in state parameter of asynchronous methods of the mailer components.
StatusID Gets the status string of the current response.

Remarks

MailBee raises this event when any of the following is received from the server:

This event is often used in conjunction with ServerStatus event during idling (see Idle) for keeping the application informed of any changes in the monitored folder.

Example

The example is available in Idle topic.

See Also

Imap Class | MailBee.ImapMail Namespace | ServerStatus | Idle