* Add an encode_email tag library used to somewhat encode email addresses. Code...
[matthijs/projects/xerxes.git] / tools / notify.py
index 08bc47761f82f8247a19896f07ea9573d753a14e..74f10837bbb3eaee3e61955c7028a6093f03c29d 100644 (file)
@@ -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. 
@@ -55,3 +55,4 @@ def notify(recipients, template, context = {}):
         headers    = headers_dict
     )
     msg.send()
+# vim: set sts=4 sw=4 expandtab: