#28598: BCC addresses are ignored in the console and file email backends -------------------------------------+------------------------------------- Reporter: zngr | Owner: Josh Type: | Schneier Cleanup/optimization | Status: assigned Component: Core (Mail) | Version: 1.11 Severity: Normal | Resolution: Keywords: mail, bcc | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Carlton Gibson): I think theres's an ''easy-enoughâ„¢'' fix available here, rather than just documenting that the `BCC` list won't be shown. The [https://github.com/django/django/blob/38e904e26576abffed3c257a1a741e1641c6f2de/django/core/mail/backends/console.py#L33-L34 current console backend does this]: {{{ for message in email_messages: self.write_message(message) ... }}} The simple addition is to also write `message.recipients()` at this point. If we add and document a `format_message()` hook to `console.EmailBackend`, with a stub implementation... {{{ def format_message(self, message): return message # ... then in send_messages()... for message in email_messages: self.write_message(self.format_message(message)) ... }}} ... then users would be free to subclass the either the console or file backends in order to display the BCC list. -- Ticket URL: <https://code.djangoproject.com/ticket/28598#comment:4> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/062.92ac2514b150c47224a8607328fdd974%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.