PHP Classes

Problems to delete message

Recommend this page to a friend!

      POP3 e-mail client  >  All threads  >  Problems to delete message  >  (Un) Subscribe thread alerts  
Subject: Problems to delete message
Summary:Problems to DeleteMessage
Messages:4
Author:Luis Felipe Alonso Perez
Date:2008-06-02 16:22:31
Update:2010-07-28 14:14:33
 

  1. Problems to delete message   Reply   Report abuse  
Picture of Luis Felipe Alonso Perez Luis Felipe Alonso Perez - 2008-06-02 16:22:31
Using the class pop3_class setando the function which marks the message to delete the e-mail, but I do not know how to delete the message.

  2. Re: Problems to delete message   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-07-02 07:59:57 - In reply to message 1 from Luis Felipe Alonso Perez
Sorry for the delay. For some reason I have not seen this message. I hope the reply is still useful.
Messages are only deleted when you explicitly call the Close function. If you exit without calling the Close function, messages will remain undeleted.

  3. Re: Problems to delete message   Reply   Report abuse  
Picture of khuram khuram - 2010-07-27 18:46:33 - In reply to message 2 from Manuel Lemos
Hi

I am calling

//set the message for deletion and reset the messages
if(($error=$pop3->DeleteMessage($message))=="")
{
if(($error=$pop3->ResetDeletedMessages())=="")
{
}
}

in the for loop, and after the loop is complete,

if($error=="" && ($error=$pop3->Close())=="")
echo "Disconnected from the POP3 server "".$pop3->hostname."".";

But it is still not deleting. Any help or any special settings on the server?

Regards

Khuram

P.S: Great Work BTW

  4. Re: Problems to delete message   Reply   Report abuse  
Picture of khuram khuram - 2010-07-28 14:14:33 - In reply to message 3 from khuram
Ok fixed it.

I had to remove ResetDeletedMessages()

Thanks anyways,