Get the following error when trying to connect to my mobile.charter.net IMAP server. 17:12:53.797 UnexpectedHere Could not parse list: expected a list enclosed in (), but got something else instead␊* STATUS Junk Mail (MESSAGES 0 RECENT 0 UNSEEN 0)␍␊␊ ^ here Reproducible: Always Steps to Reproduce: 1. Open trojita 2. Observer error upon connection to IMAP host. Actual Results: From the IMAP Protocol log... 17:20:01.513 UnexpectedHere Could not parse list: expected a list enclosed in (), but got something else instead␊* STATUS Junk Mail (MESSAGES 0 RECENT 0 UNSEEN 0)␍␊␊ ^ here 17:20:01.513 Imap::Mailbox::NumberOfMessagesTask attached to Junk Mail Failed: Going offline 17:20:01.513 Imap::Mailbox::NumberOfMessagesTask attached to Sent Failed: Going offline 17:20:01.513 Imap::Mailbox::NumberOfMessagesTask attached to SentMail Failed: Going offline 17:20:01.513 Imap::Mailbox::NumberOfMessagesTask attached to Spam Failed: Going offline 17:20:01.513 Imap::Mailbox::NumberOfMessagesTask attached to Trash Failed: Going offline 17:20:01.513 Imap::Mailbox::NumberOfMessagesTask attached to Unwanted Failed: Going offline 17:20:01.513 conn Logged out. 17:20:01.515 *** Connection killed.
Unfortunately, this is a bug in the IMAP server (which is reported as Openwave Messaging, Email Mx, version M.9.00.021.00 201-2473-182). The IMAP server violates formal protocol syntax of the IMAP protocol by sending the mailbox name through the "atom" production even though it contains a space. Such names must be transmitted either via the "quoted" or through the "literal" productions -- see https://tools.ietf.org/html/rfc3501#section-9 for details. Could you please file a ticket at your IMAP server vendor with a reference to this bugreport?