Merge pull request #3 from Wiakowe/message-move

Added method Message::moveToMailbox()
This commit is contained in:
Robert Hafner 2012-10-04 10:16:27 -07:00
commit baaae55c0c

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);
}
} }