We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2019-07-15 20:26:32 +0200

Sync of read / deleted Emails doesn't work on some servers

Hello,

there are quite a number of problems reported regarding email sync (see below for a list that I found). Some sound quite similar to my problem but most are already marked as "fixed" in a version 1.x.

I have migrated my domain from one provider to another. Since I set up the new (IMAP) mail server I encounter the following problem:

  • If I delete mails in a desktop client or the web interface nothing happens on my Jolla.
  • Same for read status.
  • Same for moved mails. They appear in the new folder but are not deleted in the old one.
  • If I receive new mails, they are successfully received (that's not a problem but maybe a useful information ;-) )

Server information: It's a dovecot server provided by manitu GmbH.

I deleted the old account on my Jolla and re-created a new one several times. I even tried to remove and re-install the mail app.

Here is a messageserver.log of a update. I received two mails here, deleted two and moved one to another folder on my desktop client. On my Jolla only the two mails were received. Note that I replaced my mail with "foo@beispiel.de" to avoid spam (beispiel.de is a German domain that may be used for examples):

[5535] Juli 15 19:10:29 [Debug] Messaging :  Running action RetrieveMessageListRequest 23450521436162
[5535] Juli 15 19:10:29 [Debug] Messaging :  Setting imap strategy 31ImapRetrieveMessageListStrategy
[5535] Juli 15 19:10:29 [Debug] IMAP :  "1" About to open connection "foo@bar.de" "mail.manitu.de"
[5535] Juli 15 19:10:29 [Debug] Messaging :  QMailTransport::Socket::Socket SET PROXY host= "" port= 0
[5535] Juli 15 19:10:29 [Debug] Messaging :  Opening connection -  "mail.manitu.de" : 993  SSL
[5535] Juli 15 19:10:30 [Debug] Messaging :  IMAP : connection established
[5535] Juli 15 19:10:30 [Debug] Messaging :  IMAP : Secure connection established
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" SEND a001 CAPABILITY
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: a001 OK Pre-login capabilities listed, post-login capabilities have more.
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" SEND a002 AUTHENTICATE PLAIN
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: + 
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" SEND SEND: <login hidden>
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY LITERAL+ NOTIFY SPECIAL-USE QUOTA
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: a002 OK Logged in
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" SEND a003 ENABLE QRESYNC CONDSTORE
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * ENABLED QRESYNC CONDSTORE
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: a003 OK Enabled (0.001 + 0.000 secs).
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" SEND a004 SELECT INBOX (QRESYNC (1559587084 0 40:223))
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk Junk)
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk Junk \*)] Flags permitted.
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * 63 EXISTS
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * 0 RECENT
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * OK [UNSEEN 63] First unseen.
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * OK [UIDVALIDITY 1559587084] UIDs valid
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * OK [UIDNEXT 226] Predicted next UID
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * OK [NOMODSEQ] No permanent modsequences
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: a004 OK [READ-WRITE] Select completed (0.004 + 0.000 + 0.003 secs).
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" SEND a005 SEARCH UID 224:226
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * SEARCH 62 63
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: a005 OK Search completed (0.001 + 0.000 secs).
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" SEND a006 UID SEARCH UID 224:*
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * SEARCH 224 225
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: a006 OK Search completed (0.001 + 0.000 secs).
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" SEND a007 UID FETCH 224:225 (FLAGS UID INTERNALDATE RFC822.SIZE BODYSTRUCTURE RFC822.HEADER)
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * 62 FETCH (UID 224 FLAGS (\Seen) INTERNALDATE "15-Jul-2019 19:09:58 +0200" RFC822.SIZE 441 BODYSTRUCTURE ("text" "plain" ("charset" "utf-8") NIL NIL "7bit" 7 1 NIL NIL ("en-GB") NIL) RFC822.HEADER {434}
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: <434 literal bytes received>
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: )
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * 63 FETCH (UID 225 FLAGS (Junk) INTERNALDATE "15-Jul-2019 19:09:58 +0200" RFC822.SIZE 1881 BODYSTRUCTURE ("text" "plain" ("charset" "utf-8") NIL NIL "7bit" 9 2 NIL NIL ("en-GB") NIL) RFC822.HEADER {1872}
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: <1872 literal bytes received>
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: )
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: a007 OK Fetch completed (0.001 + 0.000 secs).
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" SEND a008 UID FETCH 224:225 (FLAGS UID RFC822.SIZE BODY.PEEK[])
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * 62 FETCH (UID 224 FLAGS (\Seen) RFC822.SIZE 441 BODY[] {441}
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: <441 literal bytes received>
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: )
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * 63 FETCH (UID 225 FLAGS (Junk) RFC822.SIZE 1881 BODY[] {1881}
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: <1881 literal bytes received>
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: )
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: a008 OK Fetch completed (0.001 + 0.000 secs).
[5535] Juli 15 19:10:31 [Debug] IMAP :  void ImapClient::onAccountsUpdated(const QMailAccountIdList&) "foo@bar.de"
[5535] Juli 15 19:10:34 [Debug] Messaging :  Action completed 23450521436162 result success
[5535] Juli 15 19:10:34 [Debug] IMAP :  void ImapClient::onAccountsUpdated(const QMailAccountIdList&) "foo@bar.de"
[5535] Juli 15 19:10:45 [Debug] IMAP :  "1" SEND a009 LOGOUT
[5535] Juli 15 19:10:45 [Debug] IMAP :  "1" RECV: * BYE Logging out
[5535] Juli 15 19:10:45 [Debug] IMAP :  "1" RECV: a009 OK Logout completed (0.001 + 0.000 secs).
[5535] Juli 15 19:10:51 [Debug] Messaging :  Received SIGTERM, shutting down.
[5535] Juli 15 19:10:51 [Warning] Would not determine server/action completing
[5535] Juli 15 19:10:51 [Debug] Messaging :  IDLE Session: Destroying IDLE network session
[5535] Juli 15 19:10:51 [Warning] Would not determine server/action completing
[5535] Juli 15 19:10:51 [Warning] Would not determine server/action completing
[5535] Juli 15 19:10:51 [Warning] Would not determine server/action completing

Anyone an Idea where the problem could be?

Like promised above: Similar (but solved or not working) problems are:

  • https://together.jolla.com/question/71888/email-are-only-synced-initally-aftersward-fails-silently/
  • https://together.jolla.com/question/177203/email-read-on-another-device-status-not-updated-on-jolla/
  • https://together.jolla.com/question/18378/how-to-debug-email-application-reason-email-sync-with-imap-server-fails-with-server-error/
  • ...

Sync of read / deleted Emails doesn't work on some servers

Hello,

there are quite a number of problems reported regarding email sync (see below for a list that I found). Some sound quite similar to my problem but most are already marked as "fixed" in a version 1.x.

I have migrated my domain from one provider to another. Since I set up the new (IMAP) mail server I encounter the following problem:

  • If I delete mails in a desktop client or the web interface nothing happens on my Jolla.
  • Same for read status.
  • Same for moved mails. They appear in the new folder but are not deleted in the old one.
  • If I receive new mails, they are successfully received (that's not a problem but maybe a useful information ;-) )

Server information: It's a dovecot server provided by manitu GmbH.

I deleted the old account on my Jolla and re-created a new one several times. I even tried to remove and re-install the mail app.

Here is a messageserver.log of a update. I received two mails here, deleted two and moved one to another folder on my desktop client. On my Jolla only the two mails were received. Note that I replaced my mail with "foo@beispiel.de" to avoid spam (beispiel.de is a German domain that may be used for examples):

[5535] Juli 15 19:10:29 [Debug] Messaging :  Running action RetrieveMessageListRequest 23450521436162
[5535] Juli 15 19:10:29 [Debug] Messaging :  Setting imap strategy 31ImapRetrieveMessageListStrategy
[5535] Juli 15 19:10:29 [Debug] IMAP :  "1" About to open connection "foo@bar.de" "foo@beispiel.de" "mail.manitu.de"
[5535] Juli 15 19:10:29 [Debug] Messaging :  QMailTransport::Socket::Socket SET PROXY host= "" port= 0
[5535] Juli 15 19:10:29 [Debug] Messaging :  Opening connection -  "mail.manitu.de" : 993  SSL
[5535] Juli 15 19:10:30 [Debug] Messaging :  IMAP : connection established
[5535] Juli 15 19:10:30 [Debug] Messaging :  IMAP : Secure connection established
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" SEND a001 CAPABILITY
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: a001 OK Pre-login capabilities listed, post-login capabilities have more.
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" SEND a002 AUTHENTICATE PLAIN
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: + 
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" SEND SEND: <login hidden>
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY LITERAL+ NOTIFY SPECIAL-USE QUOTA
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: a002 OK Logged in
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" SEND a003 ENABLE QRESYNC CONDSTORE
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * ENABLED QRESYNC CONDSTORE
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: a003 OK Enabled (0.001 + 0.000 secs).
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" SEND a004 SELECT INBOX (QRESYNC (1559587084 0 40:223))
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk Junk)
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft NonJunk Junk \*)] Flags permitted.
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * 63 EXISTS
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * 0 RECENT
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * OK [UNSEEN 63] First unseen.
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * OK [UIDVALIDITY 1559587084] UIDs valid
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * OK [UIDNEXT 226] Predicted next UID
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * OK [NOMODSEQ] No permanent modsequences
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: a004 OK [READ-WRITE] Select completed (0.004 + 0.000 + 0.003 secs).
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" SEND a005 SEARCH UID 224:226
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * SEARCH 62 63
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: a005 OK Search completed (0.001 + 0.000 secs).
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" SEND a006 UID SEARCH UID 224:*
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * SEARCH 224 225
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: a006 OK Search completed (0.001 + 0.000 secs).
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" SEND a007 UID FETCH 224:225 (FLAGS UID INTERNALDATE RFC822.SIZE BODYSTRUCTURE RFC822.HEADER)
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * 62 FETCH (UID 224 FLAGS (\Seen) INTERNALDATE "15-Jul-2019 19:09:58 +0200" RFC822.SIZE 441 BODYSTRUCTURE ("text" "plain" ("charset" "utf-8") NIL NIL "7bit" 7 1 NIL NIL ("en-GB") NIL) RFC822.HEADER {434}
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: <434 literal bytes received>
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: )
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * 63 FETCH (UID 225 FLAGS (Junk) INTERNALDATE "15-Jul-2019 19:09:58 +0200" RFC822.SIZE 1881 BODYSTRUCTURE ("text" "plain" ("charset" "utf-8") NIL NIL "7bit" 9 2 NIL NIL ("en-GB") NIL) RFC822.HEADER {1872}
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: <1872 literal bytes received>
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: )
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: a007 OK Fetch completed (0.001 + 0.000 secs).
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" SEND a008 UID FETCH 224:225 (FLAGS UID RFC822.SIZE BODY.PEEK[])
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * 62 FETCH (UID 224 FLAGS (\Seen) RFC822.SIZE 441 BODY[] {441}
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: <441 literal bytes received>
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: )
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: * 63 FETCH (UID 225 FLAGS (Junk) RFC822.SIZE 1881 BODY[] {1881}
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: <1881 literal bytes received>
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: )
[5535] Juli 15 19:10:31 [Debug] IMAP :  "1" RECV: a008 OK Fetch completed (0.001 + 0.000 secs).
[5535] Juli 15 19:10:31 [Debug] IMAP :  void ImapClient::onAccountsUpdated(const QMailAccountIdList&) "foo@bar.de"
"foo@beispiel.de"
[5535] Juli 15 19:10:34 [Debug] Messaging :  Action completed 23450521436162 result success
[5535] Juli 15 19:10:34 [Debug] IMAP :  void ImapClient::onAccountsUpdated(const QMailAccountIdList&) "foo@bar.de"
"foo@beispiel.de"
[5535] Juli 15 19:10:45 [Debug] IMAP :  "1" SEND a009 LOGOUT
[5535] Juli 15 19:10:45 [Debug] IMAP :  "1" RECV: * BYE Logging out
[5535] Juli 15 19:10:45 [Debug] IMAP :  "1" RECV: a009 OK Logout completed (0.001 + 0.000 secs).
[5535] Juli 15 19:10:51 [Debug] Messaging :  Received SIGTERM, shutting down.
[5535] Juli 15 19:10:51 [Warning] Would not determine server/action completing
[5535] Juli 15 19:10:51 [Debug] Messaging :  IDLE Session: Destroying IDLE network session
[5535] Juli 15 19:10:51 [Warning] Would not determine server/action completing
[5535] Juli 15 19:10:51 [Warning] Would not determine server/action completing
[5535] Juli 15 19:10:51 [Warning] Would not determine server/action completing

Anyone an Idea where the problem could be?

Like promised above: Similar (but solved or not working) problems are:

  • https://together.jolla.com/question/71888/email-are-only-synced-initally-aftersward-fails-silently/
  • https://together.jolla.com/question/177203/email-read-on-another-device-status-not-updated-on-jolla/
  • https://together.jolla.com/question/18378/how-to-debug-email-application-reason-email-sync-with-imap-server-fails-with-server-error/
  • ...