PHP.nl

imap_mail_move

imap_mail_move

Move specified messages to a mailbox

bool **imap_mail_move** IMAP\Connection $imap string $message_nums string $mailbox int $flags

Moves mail messages specified by to the specified . Note that the mail messages are actually to the , and the original messages are flagged for deletion. That implies that the messages in are assigned new UIDs. message_nums``mailboxcopiedmailbox``mailbox

message_nums is a range not just message numbers (as described in ). message_numsRFC2060

mailbox The mailbox name, see for more information imap_open

flags is a bitmask and may contain the single option:

  `flags`- - the sequence numbers contain UIDS          `CP_UID`

return.success

Opmerking: > will flag the original mail with a delete flag, to successfully delete it a call to the function must be made. imap_mail_move``imap_expunge

imap_mail_copy