Indy 9
TIdIMAP4ConnectionState
See Also, Unit: IdIMAP4
Identifies the connection state, and subsequent valid commands, for an IMAP4 client.
TIdIMAP4ConnectionState = (csAny, csNonAuthenticated, csAuthenticated, csSelected);
Unit
IdIMAP4
Description
TIdIMAP4ConnectionState is an enumerated type that represents the connection state for the IMAP4 client. TIdIMAP4ConnectionState values are used to determine when IMAP4 commands are valid and permitted for the client connection. TIdIMAP4ConnectionState can contain the following values:

  • csAny - Commands allowed in any connection state.

  • csNonAuthenticated - Commands allowed prior to establishing authentication and entering an authenticated state.

  • csAuthenticated - Commands allowed after authentication but prior to mailbox selection.

  • csSelected - Commands allowed after selecting a mailbox.

csAny permits the commands cmdCAPABILITY, cmdNOOP, and cmdLOGOUT.

csNonAuthenticated permits commands from the csAny connection state, as well as the commands cmdAUTHENTICATE and cmdLOGOUT.

csAuthenticated permits commands from the csNonAuthenticated connection state, as well as the commands cmdSELECT, cmdEXAMINE, cmdCREATE, cmdDELETE, cmdRENAME, cmdSUBSCRIBE, cmdUNSUBSCRIBE, cmdLIST, cmdLSUB, cmdSTATUS, and cmdAPPEND.

csSelected permits commands from the csAuthenticated connection state, as well as the commands cmdCHECK, cmdCLOSE, cmdEXPUNGE, cmdSEARCH, cmdFETCH, cmdSTORE, cmdCOPY, cmdUID, and the experimental/expansion commmands represented by cmdXCmd.


Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.