PHP Classes

Mail delet problem

Recommend this page to a friend!

      Receive Mail  >  All threads  >  Mail delet problem  >  (Un) Subscribe thread alerts  
Subject:Mail delet problem
Summary:Why can't delete mails from mail box?
Messages:2
Author:Peter Uhlyarik
Date:2010-12-15 12:09:29
Update:2011-05-18 11:38:44
 

  1. Mail delet problem   Reply   Report abuse  
Picture of Peter Uhlyarik Peter Uhlyarik - 2010-12-15 12:09:29
Hi!

This a very useful script, but I'v got a problem.
I can't delete mails from mail box.

I use a mac-mini whit Snow Leopard OSX and Apache2+PHP 5.3.3

My script:

for ( $i = $mailCounter; $i > 0; $i--)
{
$head = $MailObject -> getHeaders($i);
... some other actions ...
$MailObject->deleteMails($i);
}

What's wrong whit this?

Thx for your help.

Ula

  2. Re: Mail delet problem   Reply   Report abuse  
Picture of Alex Alex - 2011-05-18 11:38:44 - In reply to message 1 from Peter Uhlyarik
AFAIK the function imap_expunge has to be called. Otherwhise messages are just marked "to be deleted"
This function is missing as far as I have seen it.