-
-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
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
Can not delete message; get exception also it is deleted from INBOX #512
Comments
I encountered the same issue and resolved it by using |
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: ***@***.***>
|
@napengam i tried try catch but still take belowed error. Also i tried php: 8.3
` $foundedMessage = null;
<< * 1 FETCH (UID 12345 FLAGS (\Seen))
<< * 1 FETCH (UID 12345 FLAGS ())
<< * 1 FETCH (UID 12345 FLAGS ())
<< * 1 EXPUNGE
<< TAG11 OK Success << TAG12 OK Success
<< * BYE LOGOUT Requested |
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: