mirror of
https://github.com/retailcrm/Fetch.git
synced 2025-02-06 10:39:21 +03:00
Merge pull request #3 from Wiakowe/message-move
Added method Message::moveToMailbox()
This commit is contained in:
commit
baaae55c0c
@ -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…
x
Reference in New Issue
Block a user