mirror of
https://github.com/retailcrm/Fetch.git
synced 2024-11-25 12:36:01 +03:00
Fix moveToMailBox. Without the expunge call a copy of the file would remain hidden on the original path.
This commit is contained in:
parent
0000c11bb6
commit
14e14ab9b1
@ -650,6 +650,9 @@ class Message
|
||||
*/
|
||||
public function moveToMailBox($mailbox)
|
||||
{
|
||||
return imap_mail_copy($this->imapStream, $this->uid, $mailbox, CP_UID | CP_MOVE);
|
||||
$returnValue = imap_mail_copy($this->imapStream, $this->uid, $mailbox, CP_UID | CP_MOVE);
|
||||
imap_expunge($this->imapStream);
|
||||
|
||||
return $returnValue;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user