Re: IdPOP3Server tracking current mail drop

Giganews Newsgroups
Subject: Re: IdPOP3Server tracking current mail drop
Posted by:  Remy Lebeau (TeamB) (gambit…@yahoo.com)
Date: Thu, 17 Jul 2003

"Matt Atkins" <scherzandogbr@_NOSPAMPLEASE_hotmail.com> wrote in message
news:5pldhvc0jppq46raq2o6onqoj0bjjfkg…@4ax.com...

> In the CheckUser Event you can access the Username property of the
> TIdPOP3ServerThread *LThread, but this is not available in any of the
> subsequent events (OnLIST, OnRETR, OnDELE).

Given a TIdPeerThread, you can cast it to a TIdPOP3ServerThread first, then
TIdPOP3ServerThread has Username and Password properties.  For example:

    procedure TForm1.IdPOP3Server1LIST(ASender: TIdCommand; AMessageNum
:Integer);
    var
        LThread: TIdPOP3ServerThread;
    begin
        LThread := TIdPOP3ServerThread(ASender.Thread);
        // use LThread.Username as needed
    end;

Gambit

Replies

In response to

IdPOP3Server tracking current mail drop posted by Matt Atkins on Thu, 17 Jul 2003