diff options
author | Magnus Hagander | 2019-03-16 21:42:39 +0000 |
---|---|---|
committer | Magnus Hagander | 2019-03-16 21:44:39 +0000 |
commit | 63c177f8495baa4b3558bd80f73e0b0211af1eb4 (patch) | |
tree | ca5865d726528ceee9b3fecfb53b560ea6b2f234 /postgresqleu/mailqueue/util.py | |
parent | 5e4e5b47dfe1530d7abcf0825f02292c5487e7de (diff) |
Fix mail sending with BCCs
Looks like this was broken in the python 3 migration, but missed since
it only affected cases where a single address was added, and not a list
of addresses. The only user of this was data-purge warnings.
Diffstat (limited to 'postgresqleu/mailqueue/util.py')
-rw-r--r-- | postgresqleu/mailqueue/util.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresqleu/mailqueue/util.py b/postgresqleu/mailqueue/util.py index a74368a5..7fa063f4 100644 --- a/postgresqleu/mailqueue/util.py +++ b/postgresqleu/mailqueue/util.py @@ -60,7 +60,7 @@ def send_simple_mail(sender, receiver, subject, msgtxt, attachments=None, bcc=No if type(bcc) is list or type(bcc) is tuple: bcc = set(bcc) else: - bcc = set(bcc, ) + bcc = set((bcc, )) for b in bcc: QueuedMail(sender=sender, receiver=b, fullmsg=msg.as_string()).save() |