Board index » delphi » idPOP3server

idPOP3server

HI,

I user IdPOP3Server component, but when a client connect and send USER and
when send a PASS, In onCommandPASS,

How can I know the user who has been connected, before?

I have only PASS string.

please help

Antonello

 

Re:idPOP3server


Hum... Could you try to explain what your problem is again, please ? I
don't understand what you mean. If you have trouble with english, please
include a message in your native language, perhaps someone will be able to
translate it for you.

Good luck,
Stephane

On 25 Jun 2001, a.carloma...@starsoft.net (Antonello Carlomagno) wrote in
<3b374b0e$1_2@dnews>:

Quote
>HI,

>I user IdPOP3Server component, but when a client connect and send USER and
>when send a PASS, In onCommandPASS,

>How can I know the user who has been connected, before?

>I have only PASS string.

>please help

>Antonello

Re:idPOP3server


oops, my bad english...

I have this problem:

Client CONNECT to POP3Server

When send a USER and PASS string, in the onCommandPASS (event) I have not a
Username:

example:

procedure TForm1.IdPOP3Server1CommandUSER(AThread: TIdPeerThread;
  AUserName: String);
begin

If AUsername = 'test' then
    ok

end;

procedure TForm1.IdPOP3Server1CommandPASS(AThread: TIdPeerThread;
  APassword: String);
begin

if APassword = 'pass' then
    OK

BUT HERE I HAVE NOT A USERNAME STRING,

end;

antonello

"Stephane Grobety" <grob...@fulgan.com> ha scritto nel messaggio
news:90CBAE312grobetyfulgancom@207.105.83.65...

Quote
> Hum... Could you try to explain what your problem is again, please ? I
> don't understand what you mean. If you have trouble with english, please
> include a message in your native language, perhaps someone will be able to
> translate it for you.

> Good luck,
> Stephane

> On 25 Jun 2001, a.carloma...@starsoft.net (Antonello Carlomagno) wrote in
> <3b374b0e$1_2@dnews>:

> >HI,

> >I user IdPOP3Server component, but when a client connect and send USER
and
> >when send a PASS, In onCommandPASS,

> >How can I know the user who has been connected, before?

> >I have only PASS string.

> >please help

> >Antonello

Re:idPOP3server


"Antonello Carlomagno" <a.carloma...@starsoft.net> schrieb im Newsbeitrag
news:3b375c9f$1_1@dnews...
snip
Quote

> Client CONNECT to POP3Server

> When send a USER and PASS string, in the onCommandPASS (event) I have not
a
> Username:

> example:

> procedure TForm1.IdPOP3Server1CommandUSER(AThread: TIdPeerThread;
>   AUserName: String);
> begin

> If AUsername = 'test' then
>     ok

> end;

> procedure TForm1.IdPOP3Server1CommandPASS(AThread: TIdPeerThread;
>   APassword: String);
> begin

> if APassword = 'pass' then
>     OK

> BUT HERE I HAVE NOT A USERNAME STRING,

YOU HAVE, or did you forget to store in the thread data?
Have a look to the chat demo, how to create a object with
user data and assign it to the thread.

Ernst

Re:idPOP3server


Quote
>oops, my bad english...

No t a problem :)

Quote
>I have this problem:

Ernst is right: you have to store the username and password in the Thread
data yourself. This will be eased a lot in the next version of Indy but, as
of this time, you'll have to store the session data in the thread yourself
(that includes the username/password but it should also include the lockID,
rollback information, session timeout trigger, etc.)

Good luck,
Stephane

Re:idPOP3server


What is the last download version of indy source ?

thanks Antonello

"Stephane Grobety" <grob...@fulgan.com> ha scritto nel messaggio
news:90CC63E76grobetyfulgancom@207.105.83.65...

Quote
> >oops, my bad english...

> No t a problem :)

> >I have this problem:

> Ernst is right: you have to store the username and password in the Thread
> data yourself. This will be eased a lot in the next version of Indy but,
as
> of this time, you'll have to store the session data in the thread yourself
> (that includes the username/password but it should also include the
lockID,
> rollback information, session timeout trigger, etc.)

> Good luck,
> Stephane

Re:idPOP3server


The version currently available in the Nevrona FTP system is only slightly
different from that you have :(

Updates and a complete rewrite are scheduled, and are hoped to be completed
in the next few weeks. (I have just finished rewriting the IdSMTPServer).

Quote
"Antonello Carlomagno" <a.carloma...@starsoft.net> wrote in message

news:3b385944_2@dnews...
Quote
> What is the last download version of indy source ?

> thanks Antonello

> "Stephane Grobety" <grob...@fulgan.com> ha scritto nel messaggio
> news:90CC63E76grobetyfulgancom@207.105.83.65...
> > >oops, my bad english...

> > No t a problem :)

> > >I have this problem:

> > Ernst is right: you have to store the username and password in the
Thread
> > data yourself. This will be eased a lot in the next version of Indy but,
> as
> > of this time, you'll have to store the session data in the thread
yourself
> > (that includes the username/password but it should also include the
> lockID,
> > rollback information, session timeout trigger, etc.)

> > Good luck,
> > Stephane

Other Threads