Topic Path: Symbol Reference > Classes > TIdIMAP4 Class > TIdIMAP4 Methods > DoAlert Method
TIdIMAP4.DoAlert Method

Triggers the OnAlert event handler.

procedure DoAlert(
    const AMsg: String
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.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.