First of all this class is very usable, however there are only a few example.
My first problem to find out which message is new and which is old.
Second problem is the folders. For example there is a sent folder. How can I get the message from this folder?
Zsolt Makkai - 2008-06-17 06:55:13 - In reply to message 2 from Steffen Stollfuß
Thx for your prompt answare.
The situation is the following:
I develop a small company intranet site. The employees use basically SquriellMail web mail system. There they can see their old emails, new emails in the INBOX, they can define different folders. What I would like to do is that the company intranet site also shows the emails of the employees. I inserted an iframe, which call a mail.php script. This script uses your class. (Thx again for that)
The employess generally use their webmail application as well. Therefore this iframe should show the same list with new emails in bold, the olds in normal letters and so on.
At first I would find out which mails are new. It is not a good solution to watch the date of last query, because in the webmail the messages could be read between two mail.php queries.
Ok, my question is that is there any indicator in the pop3 system which shows that a given message has already been read or not?
PS: both the mail- and the webserver are outside the company
Steffen Stollfuß - 2008-06-19 10:14:57 - In reply to message 3 from Zsolt Makkai
> Ok, my question is that is there any indicator in the pop3 system which shows that a given message has already been read or not?
The answer is really simple. Not really. There not directly a way to indicate over pop3 is a message new or not.
Only the email client knowns which message are read or not. So If you want to show the same like squirreMail you have:
1. Get the messages from pop3. AND THE unique_id's (getOfficeStatus() ) "uid"
2. Go to the squirremail database and call them which of them are had read or not.
3. If you now want that are read messages in webmail will show as read in squirreMail you have to say that to the squirreMail database.