Fix moveToMailBox. Without the expunge call a copy of the file would remain hidden on the original path.

This commit is contained in:
gries 2013-08-20 14:07:58 +02:00
parent 0000c11bb6
commit 14e14ab9b1

View File

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