summaryrefslogtreecommitdiff
path: root/addons/test_mail/data/test_mail_data.py
diff options
context:
space:
mode:
authorDavid Beguin <dbe@odoo.com>2019-01-04 10:46:40 +0000
committerThibault Delavallée <tde@odoo.com>2019-08-09 14:30:55 +0000
commitf4524f03c32a27b1899562a71cad6f491bfe44ce (patch)
tree0e306f48ec26b3da35968e054f9076a37aa7381a /addons/test_mail/data/test_mail_data.py
parent7b79045fab809679e17d774f9a510e07ac39aa0b (diff)
[REF] mail: move and improve bounce management in mail gateway
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 Purpose * move bounce information detection in message parsing. It allows to have this information available in various steps of routing instead of having to manually re-compute them; * handle bounce in specific methods allowing easy override; * improve bounce management, notably when detecting a bounce not linked to the bounce alias configuration; * better integration with blacklist mechanism; Specifications * compute bounce information in ``_message_parse_extract_bounce``.It parses bounce information and returns a dictionary allowing to update parsed email values; * remove override in mass_mailign that basically does what mail already does; * manage bounce in ``_routing_handle_bounce``; * when detecting a bounce, correctly call the bounce management method on all models inheriting from blacklist; * correctly update bounce counter; * bounced mailing traces and automatic blacklist in mass mailing should be done in ``_routing_handle_bounce``; * add some tests; LINKS Related to task 1893155 Linked to PR #33340
Diffstat (limited to 'addons/test_mail/data/test_mail_data.py')
-rw-r--r--addons/test_mail/data/test_mail_data.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/test_mail/data/test_mail_data.py b/addons/test_mail/data/test_mail_data.py
index eb2b53dbf57..cfce6317440 100644
--- a/addons/test_mail/data/test_mail_data.py
+++ b/addons/test_mail/data/test_mail_data.py
@@ -744,7 +744,7 @@ DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=test.ironsky; s=mail;
h+BQVyBKIvr/LDFPSN2hQmfXWwWupm1lgUhJ07T4=
Content-Type: multipart/mixed; boundary="===============7355787381227985247=="
MIME-Version: 1.0
-Message-Id: <288877393590487.1555335624.090619087219238-openerp-32-project.task@aaa>
+Message-Id: {extra}
references: <670034078674109.1555335454.587288856506348-openerp-32-project.task@aaa>
Subject: Re: Test
From: Mitchell Admin <admin@yourcompany.example.com>