X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=tools%2Fnotify.py;h=8dca1ba081ae551f70da5ddee9633fefecc436be;hb=483829feb4f219b31afebaf1d5f7136dfcc05a18;hp=08bc47761f82f8247a19896f07ea9573d753a14e;hpb=9babde1e22ffce2534f5c62b7e06afeb62261469;p=matthijs%2Fprojects%2Fxerxes.git 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.