-
- Downloads
[MERGE][REF] mail: improve routing and bounce / blacklist management
PURPOSE
Add some improvements in mail gateway: remove private discussion, improve
bounce management, allow resetting bounce counters, improve automatic set or
reset of blacklists and ease mass mailing inheritance.
MAIN SPECIFICATIONS
Remove private discussion support in mail gateway. It is not really supported
since several versions. This merge removes remaining code in gateway.
Perform all incoming email parsing in message_parse and its sub methods. That
way future processing can use parsed values instead of re-doing parsing of
required information.
Add ``_message_parse_extract_bounce`` parsing sub method to parse bounce
information and use it in mass mailing.
Add ``_routing_handle_bounce``: handle bounced emails by notably updating
the bounce counter on blacklist records.
Add ``_routing_reset_bounce``: handle valid incoming emails by notably
resetting bounce information on that specific email.
Have ``_message_receive_bounce`` and ``_message_reset_bounce`` being
void in mail.thread and updating reset counter in blacklist enabled records.
Update blacklist / unblacklist in mass mailing, take into account traces and
partner information.
Add tests.
See sub commits for more details and explanation.
LINKS
See task 1893155
closes odoo/odoo#35284
Signed-off-by:
Thibault Delavallee (tde) <tde@openerp.com>
Showing
- addons/crm/tests/test_crm_lead.py 3 additions, 3 deletionsaddons/crm/tests/test_crm_lead.py
- addons/hr_recruitment/tests/test_recruitment_process.py 1 addition, 1 deletionaddons/hr_recruitment/tests/test_recruitment_process.py
- addons/l10n_it_edi/models/ir_mail_server.py 2 additions, 1 deletionaddons/l10n_it_edi/models/ir_mail_server.py
- addons/mail/models/mail_blacklist.py 8 additions, 2 deletionsaddons/mail/models/mail_blacklist.py
- addons/mail/models/mail_channel.py 2 additions, 2 deletionsaddons/mail/models/mail_channel.py
- addons/mail/models/mail_thread.py 296 additions, 263 deletionsaddons/mail/models/mail_thread.py
- addons/mail/wizard/mail_compose_message.py 0 additions, 2 deletionsaddons/mail/wizard/mail_compose_message.py
- addons/mass_mailing/models/mail_thread.py 18 additions, 28 deletionsaddons/mass_mailing/models/mail_thread.py
- addons/test_mail/data/test_mail_data.py 1 addition, 1 deletionaddons/test_mail/data/test_mail_data.py
- addons/test_mail/tests/test_mail_gateway.py 104 additions, 27 deletionsaddons/test_mail/tests/test_mail_gateway.py
- addons/test_mass_mailing/tests/test_mail_auto_blacklist.py 31 additions, 33 deletionsaddons/test_mass_mailing/tests/test_mail_auto_blacklist.py
- odoo/tools/mail.py 0 additions, 20 deletionsodoo/tools/mail.py
Loading
Please register or sign in to comment