PHP Classes

Marked for Deletion

Recommend this page to a friend!

      POP3 e-mail client  >  All threads  >  Marked for Deletion  >  (Un) Subscribe thread alerts  
Subject:Marked for Deletion
Summary:How to Physically Delete Email
Messages:2
Author:Jack J. Utano
Date:2014-01-16 22:04:39
Update:2014-01-16 23:52:52
 

  1. Marked for Deletion   Reply   Report abuse  
Picture of Jack J. Utano Jack J. Utano - 2014-01-16 22:04:39
Greetings:

I am currently using this very useful class and I have a question:

I processing emails and extracting out email address which I am able to do. Now, after I process an email I want to delete the pop3 email account. Here is my code to make the email for deletion:

if(($error=$pop3->DeleteMessage($n))=="")
{
echo "<PRE>Marked message $n for deletion.</PRE>\n";
/*
$error=$pop3->DeleteMessage($n);
if(($error=$pop3->ResetDeletedMessages())=="")
{
echo "<PRE>Resetted the list of messages to be deleted.</PRE>\n";
}
*/

But is there a method to 'Phyically Delete' the email -- How do I phyiscaly delete (remove) the email?


Thank You

  2. Re: Marked for Deletion   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2014-01-16 23:52:52 - In reply to message 1 from Jack J. Utano
The message is deleted effectively when the connection is closed, but you cannot call the function ResetDeletedMessages.