-
- Downloads
[IMP] mail, mass_mailing : reset bounce on mail reception
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. SPECIFICATIONS The number of message bounce is incremented each time the email bounce on a specific email address. To have a correct information, we should reset to zero this counter if we receive a mail from this address. Indeed, if we receive an email from an email address, this email is active and the message bounce number (if > 0) is not relevant anymore. Only models inheriting form blacklist are impacted by this improvement in order to limit a bit side effect. Also, add a check in autoblacklist rule. No need to check the stats if message_bounce is < 5. This commit introduces * ``_routing_reset_bounce`` routing method managing the bounce reset; * ``_message_reset_bounce`` model method that resets bounce counter in blacklist enabled models; LINKS Related to task ID : 1893155 Linked to PR #33340
Showing
- addons/mail/models/mail_blacklist.py 6 additions, 0 deletionsaddons/mail/models/mail_blacklist.py
- addons/mail/models/mail_thread.py 28 additions, 0 deletionsaddons/mail/models/mail_thread.py
- addons/mass_mailing/models/mail_thread.py 2 additions, 1 deletionaddons/mass_mailing/models/mail_thread.py
Please register or sign in to comment