PHP Classes

Read messages

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  Read messages  >  (Un) Subscribe thread alerts  
Subject:Read messages
Summary:How to read only new mail messages
Messages:4
Author:Javier Navarrete
Date:2008-03-16 15:32:52
Update:2009-10-20 20:54:25
 

  1. Read messages   Reply   Report abuse  
Picture of Javier Navarrete Javier Navarrete - 2008-03-16 15:32:52
$this->sendCmd("RETR ". $intMsgNum );

This command set message's seen flag.
How can i read only new mail messages?

Thanks.

  2. Re: Read messages   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-03-16 17:46:46 - In reply to message 1 from Javier Navarrete
This has not really much to do with the MIME parser class.

If you are using the POP3 class, you need to check the message header to see if the message was already read.

  3. Re: Read messages   Reply   Report abuse  
Picture of John John - 2009-10-20 20:23:06 - In reply to message 2 from Manuel Lemos
Hi Manuel,

Maybe you can bring to an example of that?...

Now I'm make a WebMail client, with PHP and FLEX, so I need know if the message are or not read and if are reply.....
In other hand, I need to SET that flags...

Can you helpme?....

  4. Re: Read messages   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-10-20 20:54:25 - In reply to message 3 from John
With POP3 there is no way to set the read status because that is done by the server when you pull the messages.

What you can do is to check the Status: header because that is what some mail servers use to mark a message as read.

You can just use this POP3 class to do it:

phpclasses.org/pop3class