Bug 358898

Summary: Openwave Messaging Email Mx: invalid STATUS response: spaces are not escaped
Product: [Applications] trojita Reporter: Fred Wells <fredcwells>
Component: IMAPAssignee: Trojita default assignee <trojita-bugs>
Status: RESOLVED INTENTIONAL    
Severity: grave    
Priority: NOR    
Version First Reported In: 0.5   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=364666
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Fred Wells 2016-02-01 23:22:55 UTC
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.
Comment 1 Jan Kundrát 2016-02-01 23:45:28 UTC
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?