This behavior manifests to me after upgrading to 4.5.0.18 for one of two my gmail accounts on the phone. The other gmail account updates normally, according to the settings. Sony Xperia XA2 Plus dual-SIM (H4413, H4493)
Either:
- we need a way to reset the config if the config is wrong
- or there are errors in gmail/imap handling implementation (for some specific email content)
An excerpt from journalctl -a -b --no-tail --no-pager (top line):
Feb 27 18:38:10 [Warning] void QCopClient::connectToServer() QLocalSocket::ServerNotFoundError "QLocalSocket::connectToServer: Inval
id name"
Another:
Feb 27 18:42:59 Sailfish buteo-oopp-runner[7220]: [W] unknown:0 - void EmailAgent::activityChanged(QMailServiceAction::Activity) operation
failed error code: 1028 error text: "Unexpected response from server: imap.gmail.com: a019 BAD CLOSE not allowed now.\r\n" account: 13 conn
ection status: 0 sender: QMailRetrievalAction(0x1cbb28)
Email Logs (as explained at Collect Email Logs | Sailfish OS Documentation):
[4621] Feb 27 18:42:52 [Warning] 4621 Unable to inquire message meta data from uid for account id
[4621] Feb 27 18:42:52 [Warning] 4621 Unable to inquire message from id
More email logs:
[4621] Feb 27 18:42:54 [Debug] IMAP : "2" SEND a010 SELECT "[Google Mail]/Trash" (CONDSTORE)
[4621] Feb 27 18:42:54 [Debug] IMAP : "2" RECV: * FLAGS (\Answered \Flagged \Draft \Deleted \Seen $MDNSent $NotPhishing $Phishing Junk Non
Junk Old)
[4621] Feb 27 18:42:54 [Debug] IMAP : "2" RECV: * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen $MDNSent $NotPhishing $Phis
hing Junk NonJunk Old \*)] Flags permitted.
[4621] Feb 27 18:42:54 [Debug] IMAP : "2" RECV: * OK [UIDVALIDITY 671414585] UIDs valid.
[4621] Feb 27 18:42:54 [Debug] IMAP : "2" RECV: * 269 EXISTS
[4621] Feb 27 18:42:54 [Debug] IMAP : "2" RECV: * 0 RECENT
[4621] Feb 27 18:42:54 [Debug] IMAP : "2" RECV: * OK [UIDNEXT 152483] Predicted next UID.
[4621] Feb 27 18:42:54 [Debug] IMAP : "2" RECV: * OK [HIGHESTMODSEQ 24294605]
[4621] Feb 27 18:42:54 [Debug] IMAP : "2" RECV: a010 OK [READ-WRITE] [Google Mail]/Trash selected. (Success)
[4621] Feb 27 18:42:55 [Debug] IMAP : "2" SEND a011 UID STORE 132463 +FLAGS.SILENT (\Deleted)
[4621] Feb 27 18:42:55 [Debug] IMAP : "2" RECV: a011 OK Success
[4621] Feb 27 18:42:55 [Warning] 4621 Unable to inquire message meta data from uid for account id
[4621] Feb 27 18:42:55 [Debug] IMAP : "2" SEND a012 UID FETCH 152481 (FLAGS UID INTERNALDATE RFC822.SIZE BODYSTRUCTURE RFC822.HEADER)
[4621] Feb 27 18:42:55 [Debug] IMAP : "2" RECV: * 268 FETCH (UID 152481 RFC822.SIZE 60 RFC822.HEADER {60}
[4621] Feb 27 18:42:55 [Debug] IMAP : "2" RECV: <60 literal bytes received>
[4621] Feb 27 18:42:55 [Debug] IMAP : "2" RECV: MODSEQ (24294595) INTERNALDATE "27-Feb-2023 17:42:52 +0000" FLAGS () BODYSTRUCTURE ("TEXT
" "PLAIN" NIL NIL NIL "7BIT" 0 0 NIL NIL NIL))
[4621] Feb 27 18:42:55 [Warning] 4621 Unable to inquire message from id
[4621] Feb 27 18:42:55 [Warning] Unable to update message from UID: "id:0" to copy: "471|152481"
[4621] Feb 27 18:42:55 [Debug] Messaging : Action completed 180388626438 result failure
[4621] Feb 27 18:42:55 [Debug] Messaging : Checking for attachments to download
[4621] Feb 27 18:42:55 [Debug] IMAP : "2" RECV: a012 OK Success
[4621] Feb 27 18:42:55 [Debug] IMAP : "2" SEND a013 UID FETCH 152482 (FLAGS UID INTERNALDATE RFC822.SIZE BODYSTRUCTURE RFC822.HEADER)
[4621] Feb 27 18:42:55 [Debug] IMAP : "2" RECV: * 269 FETCH (UID 152482 RFC822.SIZE 3761 RFC822.HEADER {497}
[4621] Feb 27 18:42:55 [Debug] IMAP : "2" RECV: <497 literal bytes received>
[4621] Feb 27 18:42:55 [Debug] IMAP : "2" RECV: MODSEQ (24294602) INTERNALDATE "23-Feb-2023 10:33:30 +0000" FLAGS (\Seen) BODYSTRUCTURE (
"TEXT" "PLAIN" ("CHARSET" "utf-8") NIL NIL "BASE64" 3262 66 NIL NIL NIL))
[4621] Feb 27 18:42:55 [Warning] Would not determine server/action completing
[4621] Feb 27 18:42:55 [Debug] IMAP : "2" RECV: a013 OK Success
[4621] Feb 27 18:42:55 [Debug] Messaging : Checking for attachments to download
[4621] Feb 27 18:42:55 [Debug] Messaging : Setting imap strategy 25ImapExportUpdatesStrategy
[4621] Feb 27 18:42:55 [Warning] Unable to process malformed message removal record for account 13
[4621] Feb 27 18:42:55 [Warning] Unable to process malformed message removal record for account 13
[4621] Feb 27 18:42:55 [Warning] Unable to process malformed message removal record for account 13