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
eb321970
Commit
eb321970
authored
Feb 16, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed \r\n translations in MailHost
parent
15bbebb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
lib/python/Products/MailHost/MailHost.py
lib/python/Products/MailHost/MailHost.py
+9
-7
No files found.
lib/python/Products/MailHost/MailHost.py
View file @
eb321970
...
...
@@ -95,8 +95,8 @@ from Scheduler.OneTimeEvent import OneTimeEvent
from
ImageFile
import
ImageFile
from
cStringIO
import
StringIO
#$Id: MailHost.py,v 1.3
4 1999/02/16 14:48:54
brian Exp $
__version__
=
"$Revision: 1.3
4
$"
[
11
:
-
2
]
#$Id: MailHost.py,v 1.3
5 1999/02/16 16:10:05
brian Exp $
__version__
=
"$Revision: 1.3
5
$"
[
11
:
-
2
]
smtpError
=
"SMTP Error"
MailHostError
=
"MailHost Error"
...
...
@@ -283,14 +283,16 @@ class SendMail:
def
_check
(
self
,
lev
=
'250'
):
line
=
self
.
getLine
()
if
not
line
:
return
0
#can't check an empty line, eh?
if
not
line
:
return
0
try
:
code
=
string
.
atoi
(
line
[:
3
])
except
:
raise
smtpError
,
"Cannot convert line from SMTP: %s"
%
line
if
code
>
400
:
raise
smtpError
,
"Recieved error code %s from SMTP: %s"
\
raise
smtpError
,
\
"Cannot convert line from SMTP: %s"
%
line
if
code
>
400
:
# my change...
raise
smtpError
,
\
"Recieved error code %s from SMTP: %s"
\
%
(
code
,
line
)
return
1
...
...
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