Skip to content
Snippets Groups Projects
Commit 18ae91ea authored by Danimar Ribeiro's avatar Danimar Ribeiro Committed by Martin Trigaux
Browse files

[FIX] mass_mailing: Check if bounce_alias is not None

If the parameter mail.bounce.alias is not found
parent eb189259
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment