linagora / james-project

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

JAMES-3945 - URL encode for subaddressing #5296

Closed florentos17 closed 1 month ago

florentos17 commented 1 month ago

Why ?

we need an ASCII representation of UTF8 that needs to be compatible with the syntax of a mail address so that subaddressing works with folders with names like "Dossier de test" or "Dossier d'été".

What ?

URLEncode seems to be a good choice, both functional and not too complicated: subaddressed mails could be converted to btellier+Dossier%20de%20test@linagora.com and btellier+Dossier%20d%27%C3%A9t%C3%A9@linagora.com