Open cwerstuik opened 1 week ago
Thanks for your bug report 👍
I'm able to reproduce.
------------------------------
>> Thu, 24 Oct 2024 12:23:03 +0000
>> Connection to: imap://imap.gmail.com:993/
>> Server connection took 0.0679 seconds.
S: * OK Gimap ready for requests from 0.0.0.0 1234
C: 1 CAPABILITY
S: * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN AUTH=OAUTHBEARER
S: 1 OK Thats all she wrote! 1234
>> Command 1 took 0.0191 seconds.
C: 2 AUTHENTICATE PLAIN [INITIAL CLIENT RESPONSE (username: blub@gmail.com)]
------------------------------
>> Thu, 24 Oct 2024 12:23:04 +0000
>> Connection to: imap://imap.gmail.com:993/
>> Server connection took 0.0537 seconds.
S: * OK Gimap ready for requests from 0.0.0.0 1234
C: 1 CAPABILITY
S: * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 XYZZY SASL-IR AUTH=XOAUTH2 AUTH=PLAIN AUTH=PLAIN-CLIENTTOKEN AUTH=OAUTHBEARER
S: 1 OK Thats all she wrote! 1234
>> Command 1 took 0.0175 seconds.
C: 2 AUTHENTICATE PLAIN [INITIAL CLIENT RESPONSE (username: blub@gmail.com)]
S: * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH UTF8=ACCEPT LIST-EXTENDED LIST-STATUS LITERAL- SPECIAL-USE APPENDLIMIT=35651584
S: 2 OK blub@gmail.com authenticated (Success)
>> Command 2 took 1.1431 seconds.
>> CACHE: Using the OCA\Mail\Cache\Cache storage driver.
C: 3 ENABLE CONDSTORE UTF8=ACCEPT
C: 4 SELECT INBOX
S: * ENABLED CONDSTORE UTF8=ACCEPT
S: 3 OK Success
>> Command 3 took 0.2041 seconds.
S: * FLAGS (\Answered \Flagged \Draft \Deleted \Seen $NotPhishing $Phishing)
S: * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen $NotPhishing $Phishing \*)] Flags permitted.
S: * OK [UIDVALIDITY 1] UIDs valid.
S: * 8 EXISTS
S: * 0 RECENT
S: * OK [UIDNEXT 17] Predicted next UID.
S: * OK [HIGHESTMODSEQ 3076]
S: 4 OK [READ-WRITE] INBOX selected. (Success)
>> Command 4 took 0.2507 seconds.
>> CACHE: Stored metadata (_m,uidvalid [INBOX])
C: 5 UID FETCH 7:14 (FLAGS) (CHANGEDSINCE 3053)
S: * CAPABILITY IMAP4rev1 UNSELECT IDLE NAMESPACE QUOTA ID XLIST CHILDREN X-GM-EXT-1 UIDPLUS COMPRESS=DEFLATE ENABLE MOVE CONDSTORE ESEARCH UTF8=ACCEPT LIST-EXTENDED LIST-STATUS LITERAL- SPECIAL-USE APPENDLIMIT=35651584
S: 2 OK blub@gmail.com authenticated (Success)
>> Command 2 took 1.174 seconds.
>> CACHE: Using the OCA\Mail\Cache\Cache storage driver.
C: 3 ENABLE CONDSTORE UTF8=ACCEPT
C: 4 EXAMINE INBOX
S: * 6 FETCH (UID 12 MODSEQ (3058) FLAGS (\Seen))
S: 5 OK Success
>> Command 5 took 0.1467 seconds.
>> CACHE: Stored messages [INBOX; 12]
>> CACHE: Stored metadata (_m,uidvalid [INBOX])
C: 6 UID SEARCH RETURN (ALL COUNT) UID 7:14
S: * ENABLED CONDSTORE UTF8=ACCEPT
S: 3 OK Success
>> Command 3 took 0.1791 seconds.
S: * ESEARCH (TAG "6") UID COUNT 8 ALL 7:14
S: 6 OK SEARCH completed (Success)
>> Command 6 took 0.1573 seconds.
C: 7 UID MOVE 12 [Gmail]/Trash
S: * FLAGS (\Answered \Flagged \Draft \Deleted \Seen $NotPhishing $Phishing)
S: * OK [PERMANENTFLAGS ()] Flags permitted.
S: * OK [UIDVALIDITY 1] UIDs valid.
S: * 8 EXISTS
S: * 0 RECENT
S: * OK [UIDNEXT 17] Predicted next UID.
S: * OK [HIGHESTMODSEQ 3076]
S: 4 OK [READ-ONLY] INBOX selected. (Success)
>> Command 4 took 0.2126 seconds.
>> CACHE: Stored metadata (_m,uidvalid [INBOX])
C: 5 UID FETCH 7:14 (FLAGS) (CHANGEDSINCE 3053)
S: * 6 FETCH (UID 12 MODSEQ (3081) FLAGS (\Seen))
>> ERROR: read timeout error.
>> ERROR: Server closed the connection.
S: * 6 EXPUNGE
>> CACHE: Stored messages [INBOX; 12]
>> CACHE: Stored metadata (_m,uidvalid [INBOX])
>> CACHE: Deleted messages [INBOX; 12]
S: * 7 EXISTS
S: 5 OK Success
>> Command 5 took 0.6338 seconds.
>> CACHE: Stored messages [INBOX; 12]
>> CACHE: Stored metadata (_m,uidvalid [INBOX])
C: 6 UID SEARCH RETURN (ALL COUNT) UID 7:14
S: * ESEARCH (TAG "6") UID COUNT 7 ALL 7:11,13:14
S: 6 OK SEARCH completed (Success)
>> Command 6 took 0.1196 seconds.
... removed some commands ...
C: 11 LOGOUT
S: * BYE LOGOUT Requested
S: 11 OK 73 good day (Success)
>> Command 11 took 0.1176 seconds.
------------------------------
Steps to reproduce
Expected behavior
When I delete an email from my Gmail Inbox, the message is moved to the Trash folder and disappears from Inbox
Actual behavior
Message disappears for a second, then reappears with the error,
Could not delete message
Eventually the message does disappear forever, but the time varies (maybe based on whenever a background sync is done?)
The message does appear in the Trash folder even though the log warning says,
Could not move message $73695 from INBOX to [Gmail]/Trash
This doesn't seem to happen with other email providers. I've tried with Yahoo and Zoho.
Mail app version
4.0.2
Mailserver or service
Gmail
Operating system
Linux
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database
MySQL
Additional info
Formated Log
The full log