We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c760ebe commit 3035fdcCopy full SHA for 3035fdc
src/IMAP/Message.php
@@ -536,8 +536,8 @@ private function getEncoding($structure) {
536
public function moveToFolder($mailbox = 'INBOX'){
537
$this->client->createFolder($mailbox);
538
539
- if(imap_mail_move($this->client->connection, $this->msglist, $mailbox) == true){
540
- return imap_expunge($this->client->connection);
+ if(imap_mail_move($this->client->getConnection(), $this->msglist, $mailbox) == true){
+ return true;
541
}
542
return false;
543
0 commit comments