-
- Downloads
[FIX] mail: limit reply-to name part
Python library currently holds a limitation when we use a formatted email that is longer than 78 characters (e.g. "Long Company Name With Long Record Name <email@domain.com>"). Python folds address if is longer than 78 chars and a bad management of quotes breaks the reply-to. Even if anything should technically be ok with the RFC python seems to incorrectly handle it (please refer to [1] for more details and discussions). Until this is finally sorted out we decided to avoid issues by shortening reply-to. To avoid that issue when formataddr would return more than 78 chars we return a simplified name/email to try to stay under 78 chars. If not possible we return only the email and skip the formataddr which causes the issue in python. We do not use hacks like crop the name part as encoding and quoting would be error prone. Task-2602862 OPW-2733513 [1] See https://bugs.python.org/issue44637 closes odoo/odoo#88912 X-original-commit: 5353ce3b Signed-off-by:Thibault Delavallee (tde) <tde@openerp.com>
Loading
Please register or sign in to comment