Not connecting with Zimbra via IMAP/SMTP - "Sorry, this folder does not exist. (IMAP)"

Description

When trying to connect a Zimbra account using IMAP/SMTP it fails, showing an error message Sorry, this folder does not exist. (IMAP)

To Reproduce…

Steps to reproduce the behavior:

1.Go to the Set up Account section by clicking on FileAdd an Account...
2. Click on IMAP/SMTP
3. fill out the form by:

  1.     writing the organisation name inside of the `Name` field
    
  2.     Write your zimbra email account inside of the `Email` field
    
  3.     Enter your zimbra mail password 
    
  4.     Click continue
    
  5. Fill out the Incoming Mail (IMAP)
  6.    Write server name inside `Server` field
    
  7.    Select `Port` 143
    
  8.    Select `Security` as `STARTTLS`
    
  9.    Fill `Username` with the username given on the Zimbra server
    
  10. Fill out the Outgoing Mail (SMTP) form.
  11.   Write server name inside `Server` field
    
  12.   Select `Port` 25
    
  13.   Select `Security` as `STARTTLS`
    
  14.   Fill `Username` with the username given on the Zimbra server
    
  15. Click on Connect Account

Expected Behavior

The mail account is added to the MailSpring application and I can receive my mail using MailSpring

Screenshots

Setup

  • OS and Version: Manjaro Linux x86_64
  • Kernel: 5.10.141-1-MANJARO
    • Installation Method: Pamac package manager
  • Mailspring Version: 1.10.5-1ce06f18

Additional Context

Haven’t had any issues in binding my Gmail accounts.

Inside of the Zimbra mail client, I do have folder structures, which I assume is the issue here.
Here is the Log output

----------IMAP----------
connect <mailcore::IMAPSession:0x7ffe2f1a9970>
STARTTLS connect
* OK IMAP4rev1 proxy server ready
1 STARTTLS
1 OK completed
2 CAPABILITY
* CAPABILITY ACL BINARY CATENATE CHILDREN CONDSTORE ENABLE ESEARCH ESORT I18NLEVEL=1 ID IDLE IMAP4rev1 LIST-EXTENDED LIST-STATUS LITERAL+ MULTIAPPEND NAMESPACE QRESYNC QUOTA RIGHTS=ektx SASL-IR SEARCHRES SORT THREAD=ORDEREDSUBJECT UIDPLUS UNSELECT WITHIN XLIST AUTH=PLAIN
2 OK completed
connect ok
login
3 LOGIN <redacted> "*********"
3 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
4 ENABLE QRESYNC
* ENABLED QRESYNC
4 OK ENABLE completed
5 NAMESPACE
* NAMESPACE (("" "/")) (("/home/" "/")) NIL
5 OK NAMESPACE completed
login ok
6 XLIST "" "*"
6 NO XLIST failed