Internet Direct (Indy)
Home
PreviousUpNext
TIdIMAP4.DoAlert Method

Triggers the OnAlert event handler.

Pascal
procedure DoAlert(
    const AMsg: String
);
Parameters 
Description 
AMsg 
Message for the OnAlert event handler. 

DoAlert is a public method used to trigger the OnAlert event handler using the value specified in AMsg. 

DoAlert is a procedure that implements event notification for alert messages in an IMAP4 response. Alert messages can occur in results from an IMAP4 command that selects the current mailbox, or appends a new message to a mailbox. TIdAlertEvent event are generated when the alert is parsed from the results from the command. 

DoAlert signals the OnAlert event handler for the current IMAP4 client instance using the value in AMsg for the alert message. Applications must assign a procedure to the OnAlert event handler to allow responding to the event notification. 

Please note that IMAP servers rarely implement alerts.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.