/** * This function is used to move a mail to the given mailbox. * * @param $mailbox */ public function moveToMailBox($mailbox) { $this->imap->mailCopy($this->imap_stream, $this->uid, $mailbox, CP_UID | CP_MOVE); }