Dave Fischetti wrote:
> Hey Alex. I just realized I can set the message to delete after being
> fetched using:
>
> $set = $pop3->fetchAll($deleteFromServer = true);
>
> When testing it, I got this error however:(see below). Can you tell me
> what might be causing this. I'm stumped.
>
>
> *Fatal error*: Uncaught exception 'ezcMailTransportException' with
> message 'An error occured while sending or receiving mail. The POP3
> server could not delete the message: -ERR Invalid message number. .' in
> /usr/include/php/ezcomponents-2007.1/Mail/src/transports/pop3/pop3_transport.php:475
>
> Stack trace: #0
> /var/www/vhosts/domain.com/httpdocs//phpcgi/inboxManager.php5(198):
> ezcMailPop3Transport->delete('<20070724181601...') #1 {main} thrown in
> */usr/include/php/ezcomponents-2007.1/Mail/src/transports/pop3/pop3_transport.php*
>
> on line *475*
Hi Dave,
From what I understand, you try to call delete() with the Message-ID
from inside the email, which is incorrect (see my reply to your previous
mail). The delete() function expects a message number.
Also there will be no need to call delete() if you call fetchAll( true ).
Cheers,
Alex.
--
Alexandru Stanoi
eZ Components System Developer
eZ Systems | http://ez.no
--
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components