|
@ -65,8 +65,11 @@ class mail_mail(osv.Model): |
|
|
res = None |
|
|
res = None |
|
|
for email in email_list: |
|
|
for email in email_list: |
|
|
email_from = mail.email_from |
|
|
email_from = mail.email_from |
|
|
|
|
|
reply_to = mail.reply_to |
|
|
if re.search(correct_email_from, email_from) is None: |
|
|
if re.search(correct_email_from, email_from) is None: |
|
|
email_from = default_email_from |
|
|
email_from = default_email_from |
|
|
|
|
|
else: |
|
|
|
|
|
reply_to = email_from |
|
|
|
|
|
|
|
|
msg = ir_mail_server.build_email( |
|
|
msg = ir_mail_server.build_email( |
|
|
email_from=email_from, |
|
|
email_from=email_from, |
|
@ -75,7 +78,7 @@ class mail_mail(osv.Model): |
|
|
body=email.get('body'), |
|
|
body=email.get('body'), |
|
|
body_alternative=email.get('body_alternative'), |
|
|
body_alternative=email.get('body_alternative'), |
|
|
email_cc=tools.email_split(mail.email_cc), |
|
|
email_cc=tools.email_split(mail.email_cc), |
|
|
reply_to=mail.reply_to, |
|
|
|
|
|
|
|
|
reply_to=reply_to, |
|
|
attachments=attachments, |
|
|
attachments=attachments, |
|
|
message_id=mail.message_id, |
|
|
message_id=mail.message_id, |
|
|
references=mail.references, |
|
|
references=mail.references, |
|
|