mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-22 19:26:01 +03:00
Added the method Message::moveToMailbox() in order to be able to move a message to the given mailbox.
This commit is contained in:
parent
812e4eb048
commit
f114f49803
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user