[FIX] mail: handle wrong Final-Recipient header in incoming emails
Some emails are wrongly formatted mainly due to old servers. If Final-Recipient
header is void or wrongly encoded it currently crashes. This fix ensure there
is no crash, even if bounce detection could be incomplete.
Task-2641572
PR odoo/odoo#76159
Closes odoo/odoo#75618
Co-Authored-By:
Thibault Delavallee <tde@odoo.com>
Showing
- addons/mail/models/mail_thread.py 3 additions, 1 deletionaddons/mail/models/mail_thread.py
- addons/test_mail/data/test_mail_data.py 50 additions, 0 deletionsaddons/test_mail/data/test_mail_data.py
- addons/test_mail/tests/test_mail_gateway.py 5 additions, 0 deletionsaddons/test_mail/tests/test_mail_gateway.py
Loading
Please register or sign in to comment