note 14860 added to function.imap-mail-move.php
| From: | laurent dot penou at gadz dot org | Date: | Fri, 17 Aug 2001 16:28:42 +0000 |
| Subject: | note 14860 added to function.imap-mail-move.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16849@lists.php.net to get a copy of this message | ||
to complete the previous example, if the mbox/folders names are
{imap.free.fr}INBOX
{imap.free.fr}INBOX/draft
{imap.free.fr}INBOX/test
and you want to copy/move from INBOX to INBOX/test this is the syntax:
$mbox = imap_open("{imap.free.fr}INBOX",$mailuser,$mailpass)
or die("can't connect: ".imap_last_error());
...
imap_mail_move($mbox,$messageset,"INBOX/test");
Hope this could help !
http://www.php.net/manual/en/function.imap-mail-move.php