Skip to content

Commit 1450d56

Browse files
authored
Merge pull request #17 from SilvanSpycher/patch-1
Update mail_mail.py
2 parents c8e05d0 + 4f6b1c8 commit 1450d56

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mail_format_with_parent/models/mail_mail.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ def _prepare_outgoing_list(self, mail_server=False, recipients_follower_status=N
4040
)
4141
]
4242
else:
43-
email_to = email_split_and_format(rec.get("email_to") or "")
43+
raw_email_to = rec.get("email_to") or ""
44+
if isinstance(raw_email_to, list):
45+
email_to = raw_email_to
46+
else:
47+
email_to = email_split_and_format(raw_email_to)
4448
rec["email_to"] = email_to
4549
return results

0 commit comments

Comments
 (0)