#26572: AdminEmailHandler fails to honor subject length limit -------------------------------+-------------------- Reporter: pdewacht | Owner: nobody Type: Uncategorized | Status: new Component: Uncategorized | Version: 1.9 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+-------------------- AdminEmailHandler.format_subject() is careful to stay under the 998 character limit of RFC 2822:
Escape CR and LF characters, and limit length. RFC 2822's hard limit is 998 characters per line. So, minus "Subject: " the actual subject must be no longer than 989 characters. However, it forgets that the mail_admins function will prepend EMAIL_SUBJECT_PREFIX. After that's done, the subject line will again exceed to RFC limit. Either the truncation needs to be moved to a lower level in the mail system, or format_subject needs to be adjusted to account for EMAIL_SUBJECT_PREFIX. -- Ticket URL: <https://code.djangoproject.com/ticket/26572> 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/051.cbe85ec7ecbf4e8925ad4117f9a332d6%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.