TPop3Cli.Quit
Main page -> ICS component reference -> TPop3Cli -> Quit
Definition
<syntaxhighlight lang="delphi"> procedure Quit; virtual; </syntaxhighlight>
Description
Sends QUIT command to a POP3 server. The command can be issued during an AUTHORIZATION state (before you've authenticated) and during a TRANSACTION state (after you've successfully authenticated). In both cases it will log off from server but the difference is how the server will behave.
If issued during AUTHORIZATION state (before valid User() and Pass() were sent) it will just make TPop3Cli component log off the server.
If issued during TRANSACTION state, the server will then enter UPDATE state where it will check if you used DELE command to delete messages from maildrop on the server. During the TRANSACTION state the maildrop on the server is locked and Dele() won't delete anything until Quit() is sent (by all clients accessing maildrop at the given moment). It also means that any new mail cannot be added to maildrop until all POP3 clients disconnect from server. Some mail servers (Gmail being an example) may be exception to maildrop locking and Dele() may not have any effect as defined by RFC standards.
Delphi Example
See List or Uidl for more comprehensive example when and how to use Quit.
C++ Example
See List or Uidl for more comprehensive example when and how to use Quit.