TCommandEvent is an event fired for every IMAP4 command which is supported by the TIdMAPI4Server component.
The Thread parameter is the thread for this connection.
Tag is the command tag which was sent from the IMAP4 client.
- This tag is a 4-digit continuous number (e.g. 000A) which is sent by the IMAP client in front of the command. If you "answer" a command you should use this tag to mark the reply. The digits normally running from "0" to "Z". (0-9,A-Z).
Command contains a string of the parameters following the detected command.
- If the command is recognized by the IMAP server (e.g. LOGIN or CAPABILITY), this string contains only the following parameters.
- The list of available IMAP commands and parameters is handled within the RFC2060 available at http://www.imap.org .
Set handled to True if you have completely handled the event.