PDA

View Full Version : Query a pop3, like in CNC


Barakk
03-02-2000, 11:02 AM
Hi,
i discovered a few days ago that the Email Accounts Manager in CNC display the number of new email for pop3 accounts.

I want the same thing in my own private site -> all the users of the private site haven't the CNC login/passwords.

I suppose (not tested yet) i can do the same with php with a pop3 class.
But what are the functions to use for only query the pop3 accounts, without retrieve the email from the server.

Any idea ?

By the way, do you know where is the file/database which contains the email-alias ? Could a php script (permission is nobody) can retrieve this aliases ?

Thx

Barakk
03-02-2000, 02:12 PM
Ok i'll be more precise.

With a pop3 connect (class.Pop3.php on Freshmeat), i can retrieve the number of e-mail that are on the server. BUT i can not tell which of them are unread.

So how can i do like in CNC ?

Justin
03-02-2000, 02:27 PM
The CNC has direct access to where the mail is stored, which you would not be able to do... As for determining POP accounts and aliases, you would not be able to do that either...

You should be able to tell which have been downloaded and which have been "Left on server", but that depends on the script. It is part of the POP protocol, which is why email clients are able to determine which emails to download and which have already been downloaded...

------------------
Justin Nelson
FutureQuest (http://www.FutureQuest.net/index.php) Support