linagora / james-project

Mirror of Apache James Project
Apache License 2.0
72 stars 62 forks source link

JAMES-4050 % * in mailbox names #5247

Closed chibenwa closed 2 months ago

chibenwa commented 3 months ago

https://issues.apache.org/jira/projects/JAMES/issues/JAMES-4050

* and % in mailbox names get a special meaning in IMAP as they are used as wildcards in IMAP LIST commands.

RFC-3501 do mention side effects of this (extra results might be present in LIST replies for those mailboxes as wildcard WILL be extended) but apparently do not prohibit them.

WHile migrating users from OpenExchange, I did encouter several failures for mailboxe names with those very characters.

I deduce from this that ASF James interpretation of % and * being forbidden in mailbox names is likely too strict and might benefit from being relaxed.

I propose to remove the check by default but propose a JVM option to re-enable it if need be. We would need to add IMAP LIST tests for this.

Arsnael commented 3 months ago
quantranhong1999 commented 2 months ago

https://github.com/apache/james-project/pull/2391

chibenwa commented 2 months ago

Please PR this for existing deployments:

Arsnael commented 2 months ago

Maybe let's try to have an intermediary tag for hotfix on tmail-backend dockerhub?

quantranhong1999 commented 2 months ago

Maybe let's try to have an intermediary tag for hotfix on tmail-backend dockerhub?

Tagged 0.10.4-rc1 with the fix. 0.10.4-rc1

Arsnael commented 2 months ago

Ah with the rc actually good thinking, we can go gradually up until final release :)

Arsnael commented 2 months ago

Are we good to close this?

quantranhong1999 commented 2 months ago

Are we good to close this?

Yes we can.