[Zope-Checkins] CVS: Zope/lib/python/Products/MailHost - MailHost.py:1.78
Andreas Jung
andreas@andreas-jung.com
Sat, 22 Feb 2003 10:13:33 -0500
Update of /cvs-repository/Zope/lib/python/Products/MailHost
In directory cvs.zope.org:/tmp/cvs-serv17350/lib/python/Products/MailHost
Modified Files:
MailHost.py
Log Message:
- Collector #816: dtml-sendmail corrupted header if message was
left blank.
=== Zope/lib/python/Products/MailHost/MailHost.py 1.77 => 1.78 ===
--- Zope/lib/python/Products/MailHost/MailHost.py:1.77 Wed Nov 27 08:20:52 2002
+++ Zope/lib/python/Products/MailHost/MailHost.py Sat Feb 22 10:13:32 2003
@@ -170,7 +170,7 @@
def _mungeHeaders( messageText, mto=None, mfrom=None, subject=None):
"""Sets missing message headers, and deletes Bcc.
returns fixed message, fixed mto and fixed mfrom"""
- mfile=StringIO(messageText.strip())
+ mfile=StringIO(messageText.lstrip())
mo=rfc822.Message(mfile)
# Parameters given will *always* override headers in the messageText.