Added the method Message::moveToMailbox() in order to be able to move a message to the given mailbox.

This commit is contained in:
Roger Llopart Pla 2012-09-18 12:31:30 +02:00
parent 812e4eb048
commit f114f49803

View File

@ -636,4 +636,15 @@ class Message
} }
} }
/**
* This function is used to move a mail to the given mailbox.
*
* @param $mailbox
*
* @return bool
*/
public function moveToMailBox($mailbox)
{
return imap_mail_copy($this->imapStream, $this->uid, $mailbox, CP_UID | CP_MOVE);
}
} }