Skip to content

Commit 7f33f5f

Browse files
committed
Changed internal message move and copy methods #210
1 parent 26a503a commit 7f33f5f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/IMAP/Message.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public function __get($name) {
295295
*/
296296
public function copy($mailbox, $options = 0) {
297297
$this->client->openFolder($this->folder_path);
298-
return imap_mail_copy($this->client->getConnection(), $this->msglist, $mailbox, $options);
298+
return imap_mail_copy($this->client->getConnection(), $this->uid, $mailbox, IMAP::CP_UID);
299299
}
300300

301301
/**
@@ -309,7 +309,7 @@ public function copy($mailbox, $options = 0) {
309309
*/
310310
public function move($mailbox, $options = 0) {
311311
$this->client->openFolder($this->folder_path);
312-
return imap_mail_move($this->client->getConnection(), $this->msglist, $mailbox, $options);
312+
return imap_mail_move($this->client->getConnection(), $this->uid, $mailbox, IMAP::CP_UID);
313313
}
314314

315315
/**
@@ -983,7 +983,7 @@ public function moveToFolder($mailbox = 'INBOX', $expunge = false, $create_folde
983983
if($expunge) $this->client->expunge();
984984
$this->client->openFolder($target_folder->path);
985985

986-
return $target_folder->getMessage($target_status->uidnext, $this->msglist, $this->fetch_options, $this->fetch_body, $this->fetch_attachment, $this->fetch_flags);
986+
return $target_folder->getMessage($target_status->uidnext, null, $this->fetch_options, $this->fetch_body, $this->fetch_attachment, $this->fetch_flags);
987987
}
988988

989989
return null;

0 commit comments

Comments
 (0)