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
3a8eb587
Commit
3a8eb587
authored
Feb 03, 2010
by
Martijn Pieters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fall back to HELO when EHLO (an optional extension) fails
parent
6274da72
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
doc/CHANGES.rst
doc/CHANGES.rst
+8
-0
src/Products/MailHost/mailer.py
src/Products/MailHost/mailer.py
+4
-2
No files found.
doc/CHANGES.rst
View file @
3a8eb587
...
...
@@ -5,6 +5,14 @@ This file contains change information for the current Zope release.
Change information for previous versions of Zope can be found in the
file HISTORY.txt.
Zope 2.12.4 (Unreleased)
------------------------
Bugs Fixed
++++++++++
- MailHost should fall back to HELO when EHLO fails.
Zope 2.12.3 (2010/01/12)
------------------------
...
...
src/Products/MailHost/mailer.py
View file @
3a8eb587
...
...
@@ -49,8 +49,10 @@ class SMTPMailer(object):
# send EHLO
code
,
response
=
connection
.
ehlo
()
if
code
<
200
or
code
>
300
:
raise
RuntimeError
(
'Error sending EHLO to the SMTP server '
'(code=%s, response=%s)'
%
(
code
,
response
))
code
,
response
=
connection
.
helo
()
if
code
<
200
or
code
>
300
:
raise
RuntimeError
(
'Error sending HELO to the SMTP server '
'(code=%s, response=%s)'
%
(
code
,
response
))
# encryption support
have_tls
=
connection
.
has_extn
(
'starttls'
)
...
...
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