[Zope-Checkins] CVS: Zope/lib/python/Products/MailHost - MailHost.py:1.74.6.4
Andreas Jung
andreas@andreas-jung.com
Sat, 22 Feb 2003 10:14:23 -0500
Update of /cvs-repository/Zope/lib/python/Products/MailHost
In directory cvs.zope.org:/tmp/cvs-serv17503/lib/python/Products/MailHost
Modified Files:
Tag: Zope-2_6-branch
MailHost.py
Log Message:
- Collector #816: dtml-sendmail corrupted header if message was
left blank.
=== Zope/lib/python/Products/MailHost/MailHost.py 1.74.6.3 => 1.74.6.4 ===
--- Zope/lib/python/Products/MailHost/MailHost.py:1.74.6.3 Wed Nov 27 08:19:05 2002
+++ Zope/lib/python/Products/MailHost/MailHost.py Sat Feb 22 10:14:22 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.