Newsgroups : Borland : borland.public.delphi.internet.winsock : 2008 Jan : Re: how to check if TidPOP3 state is transaction?

www.cryer.info
Managed Newsgroup Archive

Re: how to check if TidPOP3 state is transaction?

Subject:Re: how to check if TidPOP3 state is transaction?
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Fri, 18 Jan 2008 12:27:32

"Iliya" <iliya00@list.ru> wrote in message
news:479108a7@newsgroups.borland.com...

> What is the way to verify that a pop connection is ok

Connect() does not raise an exception.

> and its safe to do tasks like top,list and others?

The POP3 session enters the TRANSACTION state after authentication is
successful.  Authentication is performed by TIdPOP3.Login().  By default,
The TIdPOP3.AutoLogin property is set to True, so Connect() calls Login()
before exiting.  If Connect() does not raise an exception then you are
guaranteed to be in the TRANSACTION state for the entire session until you
call Disconnect().  If you set the TIdPOP3.AutoLogin property to False
instead, then Login() is not called automatically, so you will be in the
AUTHORIZATION state when Connect() exits, and you will have to call Login()
manually to enter the TRANSACTION state.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive