Changes between Initial Version and Version 3 of Ticket #35033


Ignore:
Timestamp:
Dec 13, 2023, 1:26:40 PM (11 months ago)
Author:
Aalekh Patel
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #35033

    • Property Has patch set
    • Property Easy pickings set
    • Property Needs tests set
    • Property Component UncategorizedCore (Mail)
  • Ticket #35033 – Description

    initial v3  
    2727
    2828
    29 My current workaround is to override the `EmailMessage::message` method to skip adding the {{{To}}}, {{{Cc}}}, {{{From}}}, {{{Reply-To}}} headers the second time, since we're already attaching them the first time above. In other words:
    30 
    31 {{{#!diff
    32 @@ -21,7 +21,7 @@
    33              # Use cached DNS_NAME for performance
    34              msg['Message-ID'] = make_msgid(domain=DNS_NAME)
    35          for name, value in self.extra_headers.items():
    36 -            if name.lower() != 'from':  # From is already handled
    37 +            if name.lower() not in ('from', 'to', 'cc', 'reply-to'):  # These are already handled
    38                  msg[name] = value
    39          return msg
    40 }}}
     29I've provided a patch for this here: [https://github.com/django/django/pull/17606 django/django#17606]
Back to Top