IdPOP3Server tracking current mail drop

Giganews Newsgroups
Subject: IdPOP3Server tracking current mail drop
Posted by:  Matt Atkins (scherzandog…
Date: Thu, 17 Jul 2003

There is probably a very obvious answer to this question, but so far
it has eluded me. Is there an easy way to keep track of which mail
drop a connection is currently logged into?

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).

As the server component is multi-threaded (I believe), I cannot just
assume that the last log on is the one creating the event. Can the
authentication information be accessed from the TIdCommand *ASender