|
|||
|
Hi,
When i want to remove the current message i get this error: Code:
Fatal error: Uncaught exception 'Zend_Mail_Protocol_Exception' with message 'the single id was not found in response' in /usr/share/php5/Zend/Mail/Protocol/Imap.php:591
Stack trace:
#0 /usr/share/php5/Zend/Mail/Storage/Imap.php(137): Zend_Mail_Protocol_Imap->fetch(Array, 2)
#1 /usr/share/php5/Zend/Mail/Storage/Abstract.php(298): Zend_Mail_Storage_Imap->getMessage(2)
#2 /opt/dis.pcextreme.nl/htdocs/v2/library/functions.inc.php(18): Zend_Mail_Storage_Abstract->current()
#3 /opt/dis.pcextreme.nl/htdocs/v2/index.php(11): taskqueue_step_one(Array)
#4 {main}
thrown in /usr/share/php5/Zend/Mail/Protocol/Imap.php on line 591
PHP Code:
When i run this script with removeMessage commented it does what i want (but doesn't delete mail). What am i doing wrong? Thank you! Last edited by mediakings : 08-14-2007 at 09:21 AM. |
|
|||
|
I've found a solution.
Foreach mail i do something. If it's done i push to message number into an array. After the foreach i remove the messages by reversing the values in the array en then delete them. PHP Code:
Last edited by mediakings : 12-11-2007 at 01:40 PM. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|