PHP Classes

Error deleteing messages

Recommend this page to a friend!

      POP3 e-mail client  >  All threads  >  Error deleteing messages  >  (Un) Subscribe thread alerts  
Subject:Error deleteing messages
Summary:Error deleteing messages. The last message remains
Messages:3
Author:Petar
Date:2007-10-08 09:12:54
Update:2007-10-08 11:00:40
 

  1. Error deleteing messages   Reply   Report abuse  
Picture of Petar Petar - 2007-10-08 09:12:54
At first I download all messages. Double check - inbox is empty.
Now send one message to my mailbox. Everything is ok.

$pop3->Open(); -OK
$pop3->Login(); - OK
$pop3->Statistics($messages,$size) - return 2 messages
$pop3->OpenMessage() + GetMessag - OK - i see two messages.
$success=$mime->Decode($parameters, $decoded); - OK i see two messages.
$pop3->DeleteMessage(1) - Error - Invalid message number 1
$pop3->DeleteMessage(2) - OK - deleted message 2
pop3->Close() - OK

Now i check the mail box - it is empty.

and everything repeats at the beginning - send new message -> $pop3->Statistics($messages,$size) - return 2 messages
$pop3->OpenMessage() + GetMessag - OK - i see two messages.
$success=$mime->Decode($parameters, $decoded); - OK i see two messages.
$pop3->DeleteMessage(1) - Error - Invalid message number 1
$pop3->DeleteMessage(2) - OK - deleted message 2

pop3->Close() OK

What is the problem?



  2. Re: Error deleting messages   Reply   Report abuse  
Picture of Petar Petar - 2007-10-08 09:19:05 - In reply to message 1 from Petar
Is seems that pop3 caches the laste message. I do not understant why. I log into my mailbox (via web interface) and the inbox is empty. But pop3 class returns the last message... But can not delete it because the message number is invalid - because the message is already deleted....

  3. Re: Error deleteing messages   Reply   Report abuse  
Picture of Petar Petar - 2007-10-08 11:00:42 - In reply to message 2 from Petar
PLEASE IGNORE/DELETE THIS THREAD. The problem is NOT pop3 class related! I AM SORRY!