note 88127 added to function.imap-delete
| From: | iwantsimplelife at lycos dot com | Date: | Mon, 12 Jan 2009 09:40:03 +0000 |
| Subject: | note 88127 added to function.imap-delete | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-149082@lists.php.net to get a copy of this message | ||
Somehow, when ever I try to delete an email using the message number returned by imap_header, any
email with a message number below 999 will fail.
I discovered that the imap_header will pad the message number with spaces. You will need to trim the
number before calling imap_delete.
I am using qmail and it took me over a month to figure it out.
Hope this will be helpful to some poor soul out there facing the same problem.
----
Server IP: 203.211.135.122
Probable Submitter: 210.24.253.57
----
Manual Page -- http://www.php.net/manual/en/function.imap-delete.php
Edit -- https://master.php.net/note/edit/88127
Del: integrated -- https://master.php.net/note/delete/88127/integrated
Del: useless -- https://master.php.net/note/delete/88127/useless
Del: bad code -- https://master.php.net/note/delete/88127/bad+code
Del: spam -- https://master.php.net/note/delete/88127/spam
Del: non-english -- https://master.php.net/note/delete/88127/non-english
Del: in docs -- https://master.php.net/note/delete/88127/in+docs
Del: other reasons-- https://master.php.net/note/delete/88127
Reject -- https://master.php.net/note/reject/88127
Search -- https://master.php.net/manage/user-notes.php