We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to move email to another mailbox. Library does not return any error. Looks like success, but email isn't moved.
$message->move($this->mailboxProcessed); $this->mailboxProcessed->expunge();
Also another issue is, that emails cannot be moved in a loop. Strange, but this issue occurs even when emails doesn't get moved:
[Ddeboer\Imap\Exception\MessageDoesNotExistException] Message 4 does not exist: imap_fetchstructure(): Bad message number
I'm trying to move email on Bluehost email server.
The text was updated successfully, but these errors were encountered:
Was this fixed?
Sorry, something went wrong.
I Fix that using this method: `
<?php namespace App\Mail; use Ddeboer\Imap; class Message extends Imap\Message{ public function __construct($stream, $messageNumber){ if($stream == null) return; parent::__construct($stream, $messageNumber); } public function move(Imap\Mailbox $mailbox){ $m = parent::move($mailbox); imap_expunge($this->stream); return $m; } public static function parse(Imap\Message $object){ $obj = new Message(null,null); foreach (get_object_vars($object) as $key => $name) { $obj->$key = $name; } return $obj; } }`
Merge pull request #207 from Slamdunk/test_move
19982e9
Fix imap_mail_move behaviour and test it Close #73
There was a bug fixed in #207 but also remember to call $connection->expunge() 👍
$connection->expunge()
No branches or pull requests
I'm trying to move email to another mailbox. Library does not return any error. Looks like success, but email isn't moved.
Also another issue is, that emails cannot be moved in a loop. Strange, but this issue occurs even when emails doesn't get moved:
I'm trying to move email on Bluehost email server.
The text was updated successfully, but these errors were encountered: