note 102198 added to function.imap-mail-move

From: Date: Wed, 02 Feb 2011 06:15:36 +0000
Subject: note 102198 added to function.imap-mail-move
Groups: php.notes 
Request: Send a blank email to php-notes+get-176587@lists.php.net to get a copy of this message
To copy/move a mail in Gmail to a particular Folder like Starred/Spam/Drafts/Trash use the following statement and don't forget to call CL_EXPUNGE or imap_expunge($mbox) after it. imap_mail_copy($mbox,'16','[Gmail]/Starred'); // 16 is the message number, which can also be a range.(ex: '1:15') imap_close($mbox,CL_EXPUNGE); Incase u want to send it to a personally created Label/folder(ex: Test) use.. imap_mail_copy($mbox,'16','Test'); imap_expunge($mbox); imap_close($mbox); ---- Server IP: 69.147.83.197 Probable Submitter: 59.95.40.126 ---- Manual Page -- http://www.php.net/manual/en/function.imap-mail-move.php Edit -- https://master.php.net/note/edit/102198 Del: integrated -- https://master.php.net/note/delete/102198/integrated Del: useless -- https://master.php.net/note/delete/102198/useless Del: bad code -- https://master.php.net/note/delete/102198/bad+code Del: spam -- https://master.php.net/note/delete/102198/spam Del: non-english -- https://master.php.net/note/delete/102198/non-english Del: in docs -- https://master.php.net/note/delete/102198/in+docs Del: other reasons-- https://master.php.net/note/delete/102198 Reject -- https://master.php.net/note/reject/102198 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#176587) next »