After using imap_mail_move, imap_mail_copy or imap_delete it is necesary to call imap_expunge() function.
![]() | imap_mail_moveDescriptionbool imap_mail_move ( resource imap_stream, string msglist, string mbox [, int options] )Moves mail messages specified by msglist to specified mailbox mbox. 如果成功则返回 TRUE,失败则返回 FALSE。. msglist is a range not just message numbers (as described in RFC2060). options is a bitmask and may contain the single option:
See also imap_mail_copy(). ![]()
alex at bestgames dot ro
21-Nov-2005 05:36
After using imap_mail_move, imap_mail_copy or imap_delete it is necesary to call imap_expunge() function.
php at guardn dot de
10-Jul-2003 12:06
To move mails via IMAP on an Exchange Server into "Gelschte Objekte" use:
dinter at gmx dot de
28-Jan-2003 02:18
I've used a dot in
vlad (php.net)
05-Nov-2002 05:37
This keeps biting me time after time. A lot of IMAP servers with quotas don't implement 'move' right - they do a 'copy&delete' instead and don't recognize that this conflicts with their quota implementetions. So, if you try to move a large message, you'll exceed your quota even though moving it does not increase the total size of your mailbox. This is not PHP-specific, but I bet it'll bite someone else besides me, so here you go.
juuuugroid at yahoo dot com
17-Jul-2002 05:28
I had the most trouble with figureing out what the message list was supposed to be. There was one comment by jan@showstar.com but i was still terribly confused. So I searched and searched and searched. I read rfc2060 over 10 times. Then BAM! My brother found it here:
laurent dot penou at gadz dot org
18-Aug-2001 03:28
to complete the previous example, if the mbox/folders names are
ian at showstar dot com
21-Jan-2000 10:41
<pre>The syntax for the message list is defined in RFC2060
portico dot nospam at neverwas dot net
11-Jan-2000 07:17
This function works, just not like everything else IMAP in PHP3... rather than feeding the server {server.ext/type:port}folder just feed it the folder's name.
matt at bonneau dot net
21-Dec-1999 07:49
This function copies the mail and then marks the source as deleted. In order to see the changes, you must <PRE>imap_expunge</PRE> the source box.
| ![]() |