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

IMAP: QRESYNC used without server confirmation [answered]

asked 2014-09-26 09:56:10 +0300

ausgeregelt gravatar image

updated 2014-12-09 13:38:26 +0300

eric gravatar image

Hi,

Yesterday my IMAP mail suddenly stopped working. I can't remember doing anything else than using the phone "regularly". The log says something about an "invalid select modifier QRESYNC". Does anybody know what this means?

I have alread recreated the account, with no success.

Sincerely, Norm

Here the complete log (see second last line):

[3357] Sep. 26 08:41:23 [Debug] Messaging :  Running action RetrieveMessageListRequest 5922759901214 
[3357] Sep. 26 08:41:23 [Debug] Messaging :  Setting imap strategy 31ImapRetrieveMessageListStrategy 
[3357] Sep. 26 08:41:23 [Debug] IMAP :  "3" About to open connection "yyy@sent.com" "mail.messagingengine.com" 
[3357] Sep. 26 08:41:23 [Debug] bool ImapConfiguration::acceptUntrustedCertificates() const "0" 
[3357] Sep. 26 08:41:23 [Debug] Messaging :  QMailTransport::Socket::Socket SET PROXY host= "" port= 0 
[3357] Sep. 26 08:41:23 [Debug] Messaging :  Opening connection -  "mail.messagingengine.com" : 993  SSL 
[3357] Sep. 26 08:41:23 [Debug] Messaging :  IMAP : connection established 
[3357] Sep. 26 08:41:24 [Debug] Messaging :  IMAP : Secure connection established 
[3357] Sep. 26 08:41:24 [Debug] IMAP :  "3" RECV: * OK IMAP4 ready 
[3357] Sep. 26 08:41:24 [Debug] IMAP :  "3" SEND a001 CAPABILITY 
[3357] Sep. 26 08:41:24 [Debug] IMAP :  "3" RECV: * CAPABILITY IMAP4 IMAP4rev1 LITERAL+ COMPRESS=DEFLATE ACL RIGHTS=kxte QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY SORT SORT=MODSEQ THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE CATENATE CONDSTORE LIST-EXTENDED WITHIN QRESYNC SCAN XLIST SPECIAL-USE CREATE-SPECIAL-USE DIGEST=SHA1 IDLE SASL-IR AUTH=PLAIN 
[3357] Sep. 26 08:41:24 [Debug] IMAP :  "3" RECV: a001 OK completed 
[3357] Sep. 26 08:41:24 [Debug] IMAP :  "3" SEND a002 LOGIN yyy@sent.com <password hidden> 
[3357] Sep. 26 08:41:24 [Debug] IMAP :  "3" RECV: a002 OK [CAPABILITY IMAP4rev1 LITERAL+ ID ENABLE ACL RIGHTS=kxten QUOTA MAILBOX-REFERRALS NAMESPACE UIDPLUS NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND BINARY CATENATE CONDSTORE ESEARCH SEARCH=FUZZY SORT SORT=MODSEQ SORT=DISPLAY SORT=UID THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE ANNOTATE-EXPERIMENT-1 METADATA LIST-EXTENDED LIST-STATUS LIST-MYRIGHTS WITHIN QRESYNC SCAN XLIST XMOVE MOVE SPECIAL-USE CREATE-SPECIAL-USE DIGEST=SHA1 LOGINDISABLED XCONVERSATIONS COMPRESS=DEFLATE X-QUOTA=STORAGE X-QUOTA=MESSAGE X-QUOTA=X-ANNOTATION-STORAGE X-QUOTA=X-NUM-FOLDERS IDLE] User logged in SESSIONID=<sloti23t07-3150034-1411713685-1> 
[3357] Sep. 26 08:41:24 [Debug] IMAP :  "3" SEND a003 ENABLE QRESYNC CONDSTORE 
[3357] Sep. 26 08:41:24 [Debug] IMAP :  "3" RECV: * ENABLED CONDSTORE 
[3357] Sep. 26 08:41:24 [Debug] IMAP :  "3" RECV: a003 OK Completed 
[3357] Sep. 26 08:41:24 [Debug] IMAP :  "3" SEND a004 SELECT INBOX (QRESYNC (1266326307 63435 13095:13127)) 
[3357] Sep. 26 08:41:24 [Debug] IMAP :  "3" RECV: a004 BAD Invalid Select modifier QRESYNC 
[3357] Sep. 26 08:41:24 [Debug] Messaging :  Action completed 5922759901214 result failure
edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by ausgeregelt
close date 2014-10-03 13:34:28.216227

Comments

This problem seems to occur very often, all of a sudden:

https://together.jolla.com/question/57057

ausgeregelt ( 2014-09-29 15:16:19 +0300 )edit

I have also submitted a ticket to Fastmail about this, waiting for reply. Unable to use Jolla email app at all, relying on other means to check my e-mail.

jaekkay ( 2014-09-29 15:35:23 +0300 )edit

I too have Fastmail and the problem mentioned above.

piisami ( 2014-09-29 18:08:39 +0300 )edit
1

FM confirmed that they have made recent changes in QRESYNC handling, and the issue is most likely due to this and they will investigate further. Other hand, it works fine for me with other mail clients in Android like K9mail.

jaekkay ( 2014-10-01 15:55:47 +0300 )edit

FM has now fixed the issue on server side and IMAP account is working again. I would vote for handling it better on Jolla mail client too, so it works with other providers who have similar issue.

jaekkay ( 2014-10-02 10:14:00 +0300 )edit

1 Answer

Sort by » oldest newest most voted
5

answered 2014-09-26 19:50:16 +0300

zvyn gravatar image

updated 2014-09-26 20:00:46 +0300

It seems you IMAP server (email provider) announces QRESYNC support without enabling it. This can happen for two reasons:

  1. The server does not really support QRESYNC and ignores this ENABLE argument.
  2. The server does not understand one ENABLE with more then one argument.

Both would be server bugs and you might want to inform your email provider about this.

However the Jolla should not just assume that all ENABLE argument got accepted (per RFC 5161 the server sends the OK anyway). The server clearly indicates that it just enabled the CONDSTORE extension but not QRESYNC:

    [3357] Sep. 26 08:41:24 [Debug] IMAP :  "3" RECV: * ENABLED CONDSTORE 
    [3357] Sep. 26 08:41:24 [Debug] IMAP :  "3" RECV: a003 OK Completed

tl;dr: It's a bug on the server side (but the Jolla could do better too).

edit flag offensive delete publish link more

Comments

1

Thank you very much for the detailed answer..

What of course still is strange, is that it worked for months and now just suddenly I have this issue. Following your line of reasoning Fastmail appears to have changed something on their servers just 2 days ago. Anyway, I did open a Fastmail ticket and send them the log. Looking forward to their response...

ausgeregelt ( 2014-09-27 12:24:39 +0300 )edit

But on the other hand, and in view of the comment of jaekkay, one has to say that it is really not "best practice" to enable QRESYNC without having gotten a confirmation of the server. So I think this qualifies as a bug...

ausgeregelt ( 2014-10-01 20:43:11 +0300 )edit

Thanks for the info, will look into it, does seems like a problem in Jolla side as well for the cases servers decides to not enable the capability even after announcing it.

VDVsx ( 2014-10-03 13:27:04 +0300 )edit

Question tools

Follow
4 followers

Stats

Asked: 2014-09-26 09:56:10 +0300

Seen: 587 times

Last updated: Oct 01 '14