Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot SELECT folders with tabs in their name \t on outlook.office365.com #964

Open
neob91-close opened this issue Oct 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@neob91-close
Copy link
Contributor

neob91-close commented Oct 29, 2024

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.

@neob91-close neob91-close added the enhancement New feature or request label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant