Closes an IMAP4 session and connection.
procedure Disconnect; overload;
Disconnect is an overloaded procedure in TIdIMAP4 that closes an IMAP4 session and connection.
Disconnect normally requires that the session still be Connected in order to send the LOGOUT command. Calling Disconnect with no arguments causes the session to be closed without notifying the peer connection and without raising an exception if the connection is already closed.
Disconnect sets ConnectionState to the value csNonAuthenticated.
Please note that the contents of the Capabilities property are cleared in Disconnect.
Disconnect is automatically called by the destructor when Connected contains True.
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.