From b7baf2bf56d71bda8154a9cb2552e9fdec7e4c9b Mon Sep 17 00:00:00 2001 From: User Date: Sun, 8 Jan 2017 18:52:24 +0100 Subject: [PATCH] fix for error:BadHeaderError: Header values can't contain newlines when running get_email. caused by subject_part being repeated, but second time doesnt strip newlines --- helpdesk/lib.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/helpdesk/lib.py b/helpdesk/lib.py index 73d309c0..5813559b 100644 --- a/helpdesk/lib.py +++ b/helpdesk/lib.py @@ -103,11 +103,6 @@ def send_templated_mail(template_name, (email_html_base_file, t.heading, t.html) ).render(context) - subject_part = from_string( - HELPDESK_EMAIL_SUBJECT_TEMPLATE % { - "subject": t.subject, - }).render(context) - if isinstance(recipients, str): if recipients.find(','): recipients = recipients.split(',')