#563 new
Max Rydahl Andersen

Stuck with "AS LIST "*"" when connecting to Zimbra server

Reported by Max Rydahl Andersen | January 4th, 2014 @ 11:26 PM

I'm trying out mailmate for the first time - gmail seem to work fine, but connecting to my companys mail server (zimbra) I'm stuck at "AS LIST "*"" in activity monitor.

Nothing else is happening.
I've tried restarting, also tried waiting several minutes - no change.

Note, my account have alot of folders - but other email clients or programs seem to be able to list them pretty fast.

I really like the ideas I've seen in mailmate - hope this is just a minor glitch we can fix ;)

Comments and changes to this ticket

  • Max Rydahl Andersen

    Max Rydahl Andersen January 4th, 2014 @ 11:52 PM

    I just noticed I can give you the full content of the communication:

    Clearing connection to mail.corp.redhat.com
    Clearing connection to mail.corp.redhat.com
    Trying to connect to mail.corp.redhat.com on port 993
    Successful connection.
    Initiating SSL/TLS...
    Setup of SSL/TLS connection complete.
    S: * OK IMAP4 ready
    C: A0 CAPABILITY
    S: * CAPABILITY ACL BINARY CATENATE CHILDREN CONDSTORE ENABLE ESEARCH ID IDLE IMAP4rev1 LIST-EXTENDED LITERAL+ MULTIAPPEND NAMESPACE QUOTA RIGHTS=ektx SASL-IR SEARCHRES UIDPLUS UNSELECT WITHIN ESORT I18NLEVEL=1 SORT THREAD=ORDEREDSUBJECT LIST-STATUS XLIST AUTH=PLAIN AUTH=GSSAPI
    S: A0 OK completed
    C: A1 AUTHENTICATE PLAIN ••••••••••
    S: A1 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] AUTHENTICATE completed
    C: A2 CAPABILITY
    S: * 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
    S: A2 OK CAPABILITY completed
    C: A3 ID ("name" "MailMate" "version" "r3905" "vendor" "Freron Software" "contact" "imap-id@freron.com")
    S: * ID ("NAME" "Zimbra" "VERSION" "8.0.3_GA_5664" "RELEASE" "20130305090219" "USER" "manderse@redhat.com" "SERVER" "2575de1c-eb7e-4935-a609-8d1b021c8840")
    S: A3 OK ID completed
    Fetching mailboxes
    C: A4 NAMESPACE
    S: * NAMESPACE (("" "/")) (("/home/" "/")) NIL
    S: A4 OK NAMESPACE completed
    C: A5 LIST "" "*"
    Error: Time limit (15s) reached while trying to read data (mail.corp.redhat.com)
    S:
    Trying to disconnect nicely...
    C: A6 LOGOUT

    seems i'm hitting a timeout of 15s - anyway to increase that ?

  • Max Rydahl Andersen

    Max Rydahl Andersen January 4th, 2014 @ 11:56 PM

    btw. I can see if I retry the timeout gets increased - eventually hitting 60s but the attempt after that is just stuck. no timeout. and no new data.

  • Max Rydahl Andersen

    Max Rydahl Andersen January 5th, 2014 @ 12:11 AM

    actually - after 120s - same problem.

    I think the issue is your are requesting "*" instead of i.e. "INBOX/*"

    I just confirmed that if I use imapfilter and list_all('INBOX/*') things works okey.

    Doing list_all('*') times out for me too.

    Anyway to limit this first query which is including alot of unrelevant folders?

  • Max Rydahl Andersen

    Max Rydahl Andersen January 5th, 2014 @ 12:23 AM

    found Hidden preference so I could add:

    namespaceResponse = "((\"INBOX\" \"/\")) NIL NIL";

    and it seems things are better now.

  • benny

    benny January 6th, 2014 @ 11:01 AM

    • State changed from “new” to “resolved”

    Sorry for the late reply on this one. I'm glad you found a solution yourself.

    Some servers use an INBOX prefix (or some other prefix) and some servers do not. The response from the server seems to indicate that it doesn't:

    S: * NAMESPACE (("" "/")) (("/home/" "/")) NIL
    

    But your experiments show that it probably does. I'm not sure how MailMate could reliably detect that automatically (I assume other email clients do work for you, but I don't know how).

    You could try connecting to the server using telnet/openssl to avoid the timeout. Just to see what is eventually returned by Zimbra for the LIST command and whether or not something is exposed via IMAP which you should consider a security risk. (Let me know if you would like instructions.)

  • Max Andersen

    Max Andersen January 6th, 2014 @ 01:33 PM

    Give me the instructions for what you want and I can filter out the results for anything risky ;)

  • benny

    benny January 6th, 2014 @ 01:38 PM

    Apparently I cannot connect to your server, but it's something like this:

    First connect:

    > openssl s_client -connect mail.corp.redhat.com:imaps
    

    (You might need to add -crlf as an argument.)

    Then login:

    0 LOGIN name password
    

    And then do the list:

    1 LIST "" "*"
    

    Wait to see if it ever returns a result.

  • Max Andersen

    Max Andersen January 7th, 2014 @ 05:38 AM

    I did this and yes, it eventually returned a result.

    Somewhere between 5 and 10 minutes.

    I don't think other mail clients asks for the full list every time. I think they check if the folder list has changed in the background.

  • benny

    benny January 7th, 2014 @ 08:49 AM

    Was the result the same as with the INBOX argument?

    Very few email clients would wait 5-10 minutes for a response. It is more likely that they somehow know they must use the INBOX prefix.

  • Max Andersen

    Max Andersen January 20th, 2014 @ 10:14 AM

    benny - sorry for forgetting to answer this one.

    Just to state that when not using INBOX I get additional folders, including my very big archive which uses a folder per quarter.

    I believe having INBOX/* also prevents me from having mailmate detect my actual Archive folder which is outside the INBOX and in /Archive instead.

  • benny

    benny January 20th, 2014 @ 12:09 PM

    I would think it would require tens of thousands of folders to make Zimbra hang for that long before replying…

    And yes, "INBOX" does prevent you from seeing anything outside that hierarchy. You might be able to do something like this though:

    namespaceResponse = "(("INBOX" "/") ("Archive/Whatever" "/")) NIL NIL";
    

    I haven't tested it though.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Mac OS X email client.

Shared Ticket Bins

People watching this ticket

Pages