Move message fails silently.
$messagge->move('INBOX.Trash'); // fails silently.
Here is the why:
move method at https://github.com/Webklex/php-imap/blob/master/src/Message.php#L901 does
$status = $this->client->getConnection()->examineFolder($folder_path);
if (isset($status["uidnext"])) {
but, "uidnext" does no exists for me.
dd($this->client->getConnection()->examineFolder('INBOX.Trash'));
array:4 [
"flags" => array:1 [
0 => array:6 [
0 => "\Draft"
1 => "\Answered"
2 => "\Flagged"
3 => "\Deleted"
4 => "\Seen"
5 => "\Recent"
]
]
"exists" => "1"
"recent" => "0"
"uidvalidity" => 1444046641
]
Now next line is 917:
That lets me wondering what just happened that message was not moved and no exception was raised. :)
Move message fails silently.
Here is the why:
move method at https://github.com/Webklex/php-imap/blob/master/src/Message.php#L901 does
but, "uidnext" does no exists for me.
Now next line is 917:
That lets me wondering what just happened that message was not moved and no exception was raised. :)