You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered the same issue and resolved it by using $message->move('[Gmail]/Trash') instead of $message->delete().
and delete() method will apply only for trash folder if ($folder->path === '[Gmail]/Trash') { return $message->delete(); }
I wrapped a try catch around the delete() now it works without any hickups:-)
Am 13. Sept. 2024, 17:57, um 17:57, IulianMoldovanu ***@***.***> schrieb:
I encountered the same issue and resolved it by using
`$message->move('[Gmail]/Trash')` instead of `$message->delete()`.
--
Reply to this email directly or view it on GitHub:
#512 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
Deleting one email from gmail INBOX throws exception, but it is actualy deleted from INBOX
´´´
[31-Aug-2024 20:38:39 Europe/Berlin] PHP Fatal error: Uncaught Webklex\PHPIMAP\Exceptions\ResponseException: Command failed to process:
Causes:
- Empty response
Commands send:
TAG11 UID FETCH 842 (FLAGS)\r\n
Responses received:
TAG11 OK Success\r\n
Error occurred in F:\xampp-htdocs\projectCore\vendor\webklex\php-imap\src\Exceptions\ResponseException.php:53
Stack trace:
#0 F:\xampp-htdocs\projectCore\vendor\webklex\php-imap\src\Connection\Protocols\Response.php(318): Webklex\PHPIMAP\Exceptions\ResponseException::make(Object(Webklex\PHPIMAP\Connection\Protocols\Response), true)
#1 F:\xampp-htdocs\projectCore\vendor\webklex\php-imap\src\Connection\Protocols\Response.php(308): Webklex\PHPIMAP\Connection\Protocols\Response->validate()
#2 F:\xampp-htdocs\projectCore\vendor\webklex\php-imap\src\Message.php(585): Webklex\PHPIMAP\Connection\Protocols\Response->validatedData()
#3 F:\xampp-htdocs\projectCore\vendor\webklex\php-imap\src\Message.php(1254): Webklex\PHPIMAP\Message->parseFlags()
#4 F:\xampp-htdocs\projectCore\vendor\webklex\php-imap\src\Message.php(1194): Webklex\PHPIMAP\Message->setFlag('\Deleted')
#5 F:\xampp-htdocs\projectCore\test\klex.php(62): Webklex\PHPIMAP\Message->delete(false)
#6 {main}
thrown in F:\xampp-htdocs\projectCore\vendor\webklex\php-imap\src\Exceptions\ResponseException.php on line 53
´´´
The text was updated successfully, but these errors were encountered: