Opened 7 years ago

Closed 7 years ago

#28971 closed Cleanup/optimization (fixed)

EmailMessage.message() does not override Cc header from extra_headers dict (unlike From, To, and Reply-To)

Reported by: Jon Dufresne Owned by: nobody
Component: Core (Mail) Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Compare how CC is built:

https://github.com/django/django/blob/2.0/django/core/mail/message.py#L259

To how the other headers are built:

Notice, unlike the others, Cc does not first use the .extra_headers dict. Like the other headers, should be able to use the .extra_headers to override Cc.

PR

Change History (3)

comment:1 by Mariusz Felisiak, 7 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Tim Graham, 7 years ago

Triage Stage: AcceptedReady for checkin

comment:3 by Tim Graham <timograham@…>, 7 years ago

Resolution: fixed
Status: newclosed

In b03d5002:

Fixed #28971 -- Made EmailMessage.message() set Cc from headers dict if it exists.

Note: See TracTickets for help on using tickets.
Back to Top