diff options
| author | Danimar Ribeiro <danimaribeiro@gmail.com> | 2015-09-08 09:01:58 -0300 |
|---|---|---|
| committer | Martin Trigaux <mat@odoo.com> | 2015-10-06 16:11:45 +0200 |
| commit | 18ae91ea921058ef8895b7c1b3a4ec7cf6c9fbfc (patch) | |
| tree | 9295f742b95ea496aea1123e1cef3171cf255827 /addons/mass_mailing/models/mail_thread.py | |
| parent | eb18925956a2ef641ece61a3be96dd707553bdfc (diff) | |
[FIX] mass_mailing: Check if bounce_alias is not None
If the parameter mail.bounce.alias is not found
Diffstat (limited to 'addons/mass_mailing/models/mail_thread.py')
| -rw-r--r-- | addons/mass_mailing/models/mail_thread.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mass_mailing/models/mail_thread.py b/addons/mass_mailing/models/mail_thread.py index e4732527f2d..11df611aad1 100644 --- a/addons/mass_mailing/models/mail_thread.py +++ b/addons/mass_mailing/models/mail_thread.py @@ -45,7 +45,7 @@ class MailThread(osv.AbstractModel): email_to = decode_header(message, 'To') # 0. Verify whether this is a bounced email (wrong destination,...) -> use it to collect data, such as dead leads - if bounce_alias in email_to: + if bounce_alias and bounce_alias in email_to: # Bounce regex # Typical form of bounce is bounce_alias-128-crm.lead-34@domain # group(1) = the mail ID; group(2) = the model (if any); group(3) = the record ID |
