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
e524462a
Commit
e524462a
authored
Jun 08, 2001
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collector #2289: leading \n\r inside messageText broke mail headers
parent
415a8342
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
doc/CHANGES.txt
doc/CHANGES.txt
+3
-0
lib/python/Products/MailHost/MailHost.py
lib/python/Products/MailHost/MailHost.py
+4
-2
No files found.
doc/CHANGES.txt
View file @
e524462a
...
@@ -47,6 +47,9 @@ Zope Changes
...
@@ -47,6 +47,9 @@ Zope Changes
- Collector #2287: fixed missing import of 'render_blocks' in
- Collector #2287: fixed missing import of 'render_blocks' in
SendMailTag.py
SendMailTag.py
- Collector #2289: leading \n\r inside messageText broke
mail headers
Zope 2.4 alpha 1
Zope 2.4 alpha 1
Features Added
Features Added
...
...
lib/python/Products/MailHost/MailHost.py
View file @
e524462a
...
@@ -84,8 +84,8 @@
...
@@ -84,8 +84,8 @@
##############################################################################
##############################################################################
"""SMTP mail objects
"""SMTP mail objects
$Id: MailHost.py,v 1.6
1 2001/06/07 22:18:44 shane
Exp $"""
$Id: MailHost.py,v 1.6
2 2001/06/08 11:29:07 andreas
Exp $"""
__version__
=
"$Revision: 1.6
1
$"
[
11
:
-
2
]
__version__
=
"$Revision: 1.6
2
$"
[
11
:
-
2
]
from
Globals
import
Persistent
,
DTMLFile
,
HTML
,
MessageDialog
from
Globals
import
Persistent
,
DTMLFile
,
HTML
,
MessageDialog
from
smtplib
import
SMTP
from
smtplib
import
SMTP
...
@@ -204,6 +204,8 @@ class MailBase(Acquisition.Implicit, OFS.SimpleItem.Item, RoleManager):
...
@@ -204,6 +204,8 @@ class MailBase(Acquisition.Implicit, OFS.SimpleItem.Item, RoleManager):
encode
=
None
):
encode
=
None
):
headers
=
extractheaders
(
messageText
)
headers
=
extractheaders
(
messageText
)
messageText
=
messageText
.
lstrip
()
if
not
headers
[
'subject'
]:
if
not
headers
[
'subject'
]:
messageText
=
"subject: %s
\
n
\
n
%s"
%
(
subject
or
'[No Subject]'
,
messageText
=
"subject: %s
\
n
\
n
%s"
%
(
subject
or
'[No Subject]'
,
messageText
)
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