Commit 9d5ebbfc authored by Andreas Jung's avatar Andreas Jung

     - Collector #816: dtml-sendmail corrupted header if message was
       left blank.
parent b5ffa243
...@@ -52,6 +52,9 @@ Zope Changes ...@@ -52,6 +52,9 @@ Zope Changes
Bugs Fixed Bugs Fixed
- Collector #816: dtml-sendmail corrupted header if message was
left blank.
- Collector #790: WebDAV access is granted by default only - Collector #790: WebDAV access is granted by default only
to Managers and Authenticated users instead to Anonymous users. to Managers and Authenticated users instead to Anonymous users.
This restricts access to the Control_Panel and especially This restricts access to the Control_Panel and especially
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
# #
############################################################################## ##############################################################################
"""SMTP mail objects """SMTP mail objects
$Id: MailHost.py,v 1.77 2002/11/27 13:20:52 regebro Exp $""" $Id: MailHost.py,v 1.78 2003/02/22 15:13:32 andreasjung Exp $"""
__version__ = "$Revision: 1.77 $"[11:-2] __version__ = "$Revision: 1.78 $"[11:-2]
from Globals import Persistent, DTMLFile, InitializeClass from Globals import Persistent, DTMLFile, InitializeClass
from smtplib import SMTP from smtplib import SMTP
...@@ -170,7 +170,7 @@ def _encode(body, encode=None): ...@@ -170,7 +170,7 @@ def _encode(body, encode=None):
def _mungeHeaders( messageText, mto=None, mfrom=None, subject=None): def _mungeHeaders( messageText, mto=None, mfrom=None, subject=None):
"""Sets missing message headers, and deletes Bcc. """Sets missing message headers, and deletes Bcc.
returns fixed message, fixed mto and fixed mfrom""" returns fixed message, fixed mto and fixed mfrom"""
mfile=StringIO(messageText.strip()) mfile=StringIO(messageText.lstrip())
mo=rfc822.Message(mfile) mo=rfc822.Message(mfile)
# Parameters given will *always* override headers in the messageText. # Parameters given will *always* override headers in the messageText.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment