IMAP - Moving messages between folders
| From: | N. Pari Purna Chand | Date: | Mon, 09 Sep 2002 16:06:16 +0000 |
| Subject: | IMAP - Moving messages between folders | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-115756@lists.php.net to get a copy of this message | ||
Hi all imap gurus out there,
I have sruggling for quite some time to get the
imap_mail_move() function to work.
Imap server : Courier IMAP
PHP Version : 4.1.2
<?
.......
$connectstring = $usr_inmailserver. "/" . $usr_accessmethod . ":" .
$usr_inmailport;
$mbox = @imap_open("{" . $connectstring . "}INBOX", $usr_username,
$usr_password);
if (!$mbox) {echo "NOT LOGGED IN TO IMAP SERVER";exit();}
reset($msg);
$messageset = implode (",",$msg);
imap_mail_move($mbox,$messageset,"Inbox.".$movetofolder);
imap_expunge($mbox);
imap_close($mbox);
.........
?>
where $msg is an array of imap-mailid's which are to be moved from INBOX to
$movetofolder.
But the above code is not working and is not giving any errors also !!?
regards
/Chandu