This method is used to copy or move mail from one mailbox to another.
Warning: This method is new and is thus experimental. Its API may be tweaked in future releases.
| param | str | $action One of copy|move. Toggles wether a message is copied to another mailbox or permenently moved. |
| param | array | $msg_list An array of message ids to copy or move. |
| param | str | $dest_mb The name of the destination mailbox to copy or move messages to. |
| return | bool | |
| throws | Error: Unable to copy or move message, imap_mail_(copy|move) failed. | Calling on imap_mail_copy() or imap_mail_move() failed (depending on the action), check syntax and try again, or the method is unsupported by the server. |
| throws | Error: Invalid action. | The $action argument must be one of copy|move. |
| access | public | |
| see |
imap_mail_copy() imap_mail_move() |
|
There are no comments posted at this time.
* All comments are moderated and are subject to approval.
Your comment will appear once it has been approved.
Posting multiple times will not expedite the approval process.
Comments are closed at this time.