From 13b3711fe468e074a38f47fcdc4b9a18ac993650 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Fri, 1 Feb 2008 10:24:05 +0100 Subject: [PATCH] * Fix an off-by-one error when splitting an email in headers and body. --- tools/notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/notify.py b/tools/notify.py index 08bc477..8dca1ba 100644 --- a/tools/notify.py +++ b/tools/notify.py @@ -23,7 +23,7 @@ def notify(recipients, template, context = {}): context['addresses'] = addresses rendered = loader.render_to_string(template, context) - (headers, body) = rendered.split('\n\n', 2) + (headers, body) = rendered.split('\n\n', 1) # Turn the headers into a dict so EmailMessage can turn them into a # string again. Bit pointless, but it works. -- 2.30.2