Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#7655 closed (fixed)

mail.py: Assert that "to" and "bcc" are not strings

Reported by: Thomas Güttler Owned by: nobody
Component: Core (Mail) Version: master
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Hi,

if you give a string to EmailMessage "to" or "bcc", the email
gets send to each single character in the string. This assert patch,
helps to find this problem fast.

Attachments (1)

7655.patch (570 bytes) - added by Thomas Güttler 8 years ago.

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by Thomas Güttler

Attachment: 7655.patch added

comment:1 Changed 8 years ago by Thomas Güttler

Component: Uncategorizeddjango.core.mail
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Summary: Assert that to and bcc are not stringsmail.py Assert that "to" and "bcc" are not strings

comment:2 Changed 8 years ago by Thomas Güttler

Summary: mail.py Assert that "to" and "bcc" are not stringsmail.py: Assert that "to" and "bcc" are not strings

comment:3 Changed 8 years ago by Jeff Anderson

Triage Stage: UnreviewedAccepted

comment:4 Changed 8 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [7864]) Fixed #7655 -- Added two assertions to mail.py to help people debug a common problem (sending strings instead of lists/tuples for 'to' or 'bcc'). Thanks, guettli

comment:5 Changed 8 years ago by Thomas Güttler

Cc: hv@… removed
Note: See TracTickets for help on using tickets.
Back to Top