[Zope-Checkins] CVS: Zope2 - MailHost.py:1.62
andreas@serenade.digicool.com
andreas@serenade.digicool.com
Fri, 8 Jun 2001 07:29:08 -0400
Update of /cvs-repository/Zope2/lib/python/Products/MailHost
In directory serenade:/tmp/cvs-serv30724/lib/python/Products/MailHost
Modified Files:
MailHost.py
Log Message:
Collector #2289: leading \n\r inside messageText broke mail headers
--- Updated File MailHost.py in package Zope2 --
--- MailHost.py 2001/06/07 22:18:44 1.61
+++ MailHost.py 2001/06/08 11:29:07 1.62
@@ -204,6 +204,8 @@
encode=None):
headers = extractheaders(messageText)
+ messageText = messageText.lstrip()
+
if not headers['subject']:
messageText="subject: %s\n\n%s" % (subject or '[No Subject]',
messageText)