Results 1 to 3 of 3

Thread: [SOLVED] Trying to disable QRESYNC for imap capabilities

  1. #1
    Join Date
    Dec 2010
    Posts
    3
    Rep Power
    4

    Unhappy [SOLVED] Trying to disable QRESYNC for imap capabilities

    After hours of digging why my Nokia N900 modest client doesn't want to show my messages anymore, I find this:

    Code:
    H00004 SELECT INBOX (QRESYNC (1 24715))
    H00004 BAD parse error: wrong character; expected ' ' but got '('
    That's just awesome, so 6.0.9 is broken for IMAP QRESYNC support.

    So my thought is to turn off QRESYNC.. Easy, right?

    I have disabled QRESYNC capabilities through zmprov with the mcf command.

    Taking a look at /opt/zimbra/conf/nginx/includes/nginx.conf.mail it shows that in fact the conf is updated:

    Code:
        imap_capabilities         "ACL" "BINARY" "CATENATE" "CHILDREN" "CONDSTORE" "ENABLE" "ESEARCH" "ESORT" "I18NLEVEL=1" "ID" "IDLE" "IMAP4rev1" "LIST-EXTENDED" "LITERAL+" "MULTIAPPEND" "NAMESPACE" "QUOTA" "RIGHTS=ektx" "SASL-IR" "SEARCHRES" "SORT" "THREAD=ORDEREDSUBJECT" "UIDPLUS" "UNSELECT" "WITHIN";
    So far so good.

    However, my N900 modest client still doesn't want to refresh

    So I start digging:

    root@mail:/opt/zimbra/conf# tcpdump -A -n -s 1500 -i lo port 7143

    And find this:

    Code:
    E..dx.@.@...
    ...
    ..........@.........b.....
    ........H00001 OK [CAPABILITY IMAP4rev1 ACL BINARY CATENATE CHILDREN CONDSTORE ENABLE ESEARCH ESORT I18NLEVEL=1 ID IDLE LIST-EXTENDED LIST-STATUS LITERAL+ LOGIN-REFERRALS MULTIAPPEND NAMESPACE QRESYNC QUOTA RIGHTS=ektx SASL-IR SEARCHRES SORT THREAD=ORDEREDSUBJECT UIDPLUS UNSELECT WITHIN XLIST] LOGIN completed
    What the heck??? I turned off QRESYNC and it still announces the QRESYNC as a capability? What is going on?

    I still can't believe what's happening, so here comes another test:

    root@mail:/opt/zimbra/conf# openssl s_client -host localhost -port 993

    Low and behold, the announcement is this after I login:
    Code:
    C OK [CAPABILITY IMAP4rev1 ACL BINARY CATENATE CHILDREN CONDSTORE ENABLE ESEARCH ESORT I18NLEVEL=1 ID IDLE LIST-EXTENDED LIST-STATUS LITERAL+ LOGIN-REFERRALS MULTIAPPEND NAMESPACE QRESYNC QUOTA RIGHTS=ektx SASL-IR SEARCHRES SORT THREAD=ORDEREDSUBJECT UIDPLUS UNSELECT WITHIN XLIST] LOGIN completed
    Right now I just don't know what to do, I'm assuming nginx just passes through the IMAP connection and the zimbra imap server announces the capabilities which I have not found a solution anywhere to turn off QRESYNC so at least I can use my N900.

    Extremely frustrating this is and I'm wondering if someone knows how to either:
    1. Change the sourcecode for the zimbra imap server so QRESYNC works properly
    2. Disable QRESYNC as an imap capability

    Thanks

    Thomas

  2. #2
    Join Date
    Dec 2010
    Posts
    3
    Rep Power
    4

    Default

    Found it in bugzilla
    Bug 52403 – QRESYNC support broken

    Dang.. I guess I have to wait for the fix.

  3. #3
    Join Date
    Dec 2010
    Posts
    3
    Rep Power
    4

    Default

    Fixed it. Now 6.0.9 works properly with QRESYNC.

    Created an exact same linux install in a VM as my mail server.

    Followed those instructions to download the 6.0.9 GNR source:
    GNR on Debian Lenny - Zimbra :: Wiki

    Edited line 746 in /home/public/p4/GNR-609/ZimbraServer/src/java/com/zimbra/cs/imap/ImapHandler.java
    Deleting 'req.skipSpace();' so only 'req.skipChar('(');' is left.

    Started the build with /home/public/p4/GNR-609/ZimbraBuild/buildZCS.sh and waited for it to finish.

    Copied the resulting zimbrastore.jar from /home/public/p4/GNR-609/ZimbraServer/build to my mailserver, shutdown zimbra with zmcontrol stop and replaced zimbrastore.jar in /opt/zimbra/lib/jars/ and /opt/zimbra/jetty-6.1.22.z6/webapps/service/WEB-INF/lib and /opt/zimbra/jetty-6.1.22.z6/webapps/zimbra/WEB-INF/lib and /opt/zimbra/jetty-6.1.22.z6/webapps/zimbraAdmin/WEB-INF/lib

    Fired up zimbra with zmcontrol start

    Fired up the N900 mailclient and voila it refreshes and works as it should. Perfect!!

Similar Threads

  1. Cannot disable SSL on IMAP
    By cannabic0 in forum Administrators
    Replies: 0
    Last Post: 11-01-2010, 10:06 AM
  2. disable indexing
    By maumar in forum Administrators
    Replies: 5
    Last Post: 10-12-2007, 06:13 AM
  3. [SOLVED] how to disable isync connector?
    By fisch09 in forum Administrators
    Replies: 9
    Last Post: 08-29-2007, 12:01 AM
  4. Disable attachment indexing for imapsync
    By richard-hdd in forum Migration
    Replies: 5
    Last Post: 08-14-2007, 09:56 AM
  5. Disable Zimlets
    By crashxx in forum Administrators
    Replies: 4
    Last Post: 08-03-2006, 04:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •