Skip to content

Right square bracket missing from folder fullname #557

Description

@breedbekkikker

Hi,

Consider the following snippet from an IMAP4 protocol logging:

S: * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE AUTH=PLAIN AUTH=LOGIN] Hello there.
[...]
C: X00000004 LIST "" "%" RETURN (SUBSCRIBED CHILDREN)
S: * LIST (\Subscribed \HasNoChildren) "." Sent
S: * LIST (\Subscribed \HasNoChildren) "." Trash
S: * LIST (\Subscribed \HasNoChildren) "." Drafts
S: * LIST (\Subscribed \HasChildren) "." [Gmail]
S: * LIST (\HasNoChildren) "." INBOX
S: X00000004 OK List completed.

IMailFolder.FullName returns the fullname as [Gmail. So the right square bracket is missing, which results in not being able to iterate through the folder structure.

Other IMAP4 servers that I've seen return "[Gmail]" instead of [Gmail] in the response to the LIST command, which does not cause any problems.

Please advise, thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    compatibilityCompatibility with existing softwareserver-bugThe bug appears to be in the server

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions