Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
9d5ebbfc
Commit
9d5ebbfc
authored
Feb 22, 2003
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Collector #816: dtml-sendmail corrupted header if message was left blank.
parent
b5ffa243
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
lib/python/Products/MailHost/MailHost.py
lib/python/Products/MailHost/MailHost.py
+3
-3
No files found.
doc/CHANGES.txt
View file @
9d5ebbfc
...
...
@@ -52,6 +52,9 @@ Zope Changes
Bugs Fixed
- Collector #816: dtml-sendmail corrupted header if message was
left blank.
- Collector #790: WebDAV access is granted by default only
to Managers and Authenticated users instead to Anonymous users.
This restricts access to the Control_Panel and especially
...
...
lib/python/Products/MailHost/MailHost.py
View file @
9d5ebbfc
...
...
@@ -11,8 +11,8 @@
#
##############################################################################
"""SMTP mail objects
$Id: MailHost.py,v 1.7
7 2002/11/27 13:20:52 regebro
Exp $"""
__version__
=
"$Revision: 1.7
7
$"
[
11
:
-
2
]
$Id: MailHost.py,v 1.7
8 2003/02/22 15:13:32 andreasjung
Exp $"""
__version__
=
"$Revision: 1.7
8
$"
[
11
:
-
2
]
from
Globals
import
Persistent
,
DTMLFile
,
InitializeClass
from
smtplib
import
SMTP
...
...
@@ -170,7 +170,7 @@ def _encode(body, encode=None):
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
.
l
strip
())
mo
=
rfc822
.
Message
(
mfile
)
# Parameters given will *always* override headers in the messageText.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment