Problem
I can’t add an IMAP account hosted at home.pl (Polish hosting provider) to Mailspring. The same mailbox works without problems in Thunderbird and Outlook.
Context
Connection and login succeed (“login ok”), but account setup fails right after the XLIST response.
I suspect the cause is the server’s XLIST response. For regular folders it returns an empty trailing flag (a lone backslash), e.g. (\HasNoChildren \). This looks like the known home.pl XLIST bug (it was also reported in Geary, issue #711, where it was worked around by preferring SPECIAL-USE over XLIST). The server also advertises SPECIAL-USE in its CAPABILITY.
I also noticed that the Mailspring 1.5.x changelog mentions added support for home.pl accounts that advertise XLIST without implementing it properly, so this may be a regression or a different variant of the same server bug.
Log (hostname redacted):
----------IMAP----------
connect mailcore::IMAPSession
- OK [CAPABILITY IMAP4rev1 FTS LOGIN-REFERRALS ID ENABLE IDLE SASL-IR LITERAL+ AUTH=PLAIN AUTH=LOGIN] IMAP/POP3 ready.
TLS ssl connect serwerXXXXXXX.home.pl 993 2
connect ok
login
1 OK [CAPABILITY IMAP4rev1 SASL-IR LITERAL+ CHILDREN I18NLEVEL=1 ID IDLE SORT SORT=DISPLAY UIDPLUS UNSELECT QUOTA MOVE WITHIN LIST-EXTENDED LIST-STATUS SPECIAL-USE XLIST STARTTLS] Completed
2 LIST “” “” - LIST (\Noselect) “.” “”
2 OK Completed
login ok
3 XLIST “” “*” - XLIST (\HasNoChildren ) “.” “Archiwum”
- XLIST (\HasNoChildren \Draft) “.” “DRAFTS”
- XLIST (\HasChildren \Inbox) “.” “INBOX”
- XLIST (\HasNoChildren ) “.” “INBOX.wiadomosci”
- XLIST (\HasNoChildren \Sent) “.” “SENT”
- XLIST (\HasNoChildren \Spam) “.” “SPAM”
- XLIST (\HasNoChildren \Trash) “.” “TRASH”
- XLIST (\HasNoChildren ) “.” “confirmed-ham”
- XLIST (\HasNoChildren ) “.” “confirmed-spam”
3 OK Completed
XLIST (\HasNoChildren ) “.” “Archiwum”
What I tried:
- Renamed the folder with Polish characters (INBOX.wiadomości → INBOX.wiadomosci): no change.
- Same account works in Thunderbird and Outlook (they use LIST, not XLIST).
Possible fix: tolerate the empty flag in XLIST responses, or prefer LIST with SPECIAL-USE when the server advertises it.
Email Provider
home.pl
Setup
Mailspring version: 1.26.2
- MacOS
- Setup: manual IMAP/SMTP configuration
- IMAP: serwerXXXXXXX.home.pl, port 993, SSL/TLS
- SMTP: serwerXXXXXXX.home.pl, port 465, SSL/TLS
- OS and Version:
- Installation Method:
- Mailspring Version: