It looks like Microsoft Outlook (IMAP connection to outlook.office365.com) does not adhere to the IMAP spec and returns a BAD Command Argument Error. 11 when attempting to select a folder containing the tab character (ASCII 0x09). Sync-engine is not at fault here, but maybe there is something we can do to mitigate this issue?
This is an example client<->server exchange:
...
C: A010 SELECT "INBOX/ &AAk-Example "
S: A010 BAD Command Argument Error. 11
What's interesting is that Microsoft returns the folder name with the tab character unencoded.
See a Python repr of a partial response to the LIST command:
b'* LIST (\\HasNoChildren) "/" "INBOX/ \tExample "\r\n'
Yet sending the tab unencoded in the SELECT command also results in BAD Command Argument Error. 11.