Skip to content

Commit 4d2f53c

Browse files
committed
Moving a message takes now a uid
1 parent 33eed2b commit 4d2f53c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/IMAP/Message.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -719,14 +719,13 @@ public function getContainingFolder(Folder $folder = null) {
719719
* Move the Message into an other Folder
720720
*
721721
* @param string $mailbox
722-
* @param integer $options [optional]
723722
*
724723
* @return bool
725724
*/
726-
public function moveToFolder($mailbox = 'INBOX', $options = 0) {
725+
public function moveToFolder($mailbox = 'INBOX') {
727726
$this->client->createFolder($mailbox);
728727

729-
return imap_mail_move($this->client->getConnection(), $this->msglist, $mailbox, $options);
728+
return imap_mail_move($this->client->getConnection(), $this->uid, $mailbox, CP_UID);
730729
}
731730

732731
/**

0 commit comments

Comments
 (0)