summaryrefslogtreecommitdiff
path: root/addons/mass_mailing/models/mail_thread.py
diff options
context:
space:
mode:
authorDavid Beguin <dbe@odoo.com>2018-08-08 15:50:40 +0200
committerDavid Beguin <dbe@odoo.com>2018-08-10 17:46:08 +0200
commit4b3766e8eb05fe4a9f1f083da6f4facf56b4f688 (patch)
tree2a5b49e04091d9af1be9989ffe30eb2db5ae6a56 /addons/mass_mailing/models/mail_thread.py
parenta1d6064dcc6d349c02556453e1aa052e60db41c0 (diff)
[IMP] mass_mailing : include invalid emails into ignored state
If the email is invalid (incorrect pattern), the mailing status is set to canceled and will be flaged as ignored in the mail.mail.statistics
Diffstat (limited to 'addons/mass_mailing/models/mail_thread.py')
-rw-r--r--addons/mass_mailing/models/mail_thread.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/addons/mass_mailing/models/mail_thread.py b/addons/mass_mailing/models/mail_thread.py
index 75f70f273fa..6ed94ba6b76 100644
--- a/addons/mass_mailing/models/mail_thread.py
+++ b/addons/mass_mailing/models/mail_thread.py
@@ -3,9 +3,8 @@
import logging
import re
-import datetime
-from odoo import api, models, tools, fields
+from odoo import api, models, tools
from odoo.tools import decode_smtp_header, decode_message_header
_logger = logging.getLogger(__name__)