mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
Comply with RFC 3207.
Fixes issue 829951 - http://bugs.python.org/issue829951
This commit is contained in:
parent
473170908e
commit
63bfc1d19f
2 changed files with 14 additions and 0 deletions
|
@ -589,6 +589,14 @@ class SMTP:
|
|||
raise RuntimeError("No SSL support included in this Python")
|
||||
self.sock = ssl.wrap_socket(self.sock, keyfile, certfile)
|
||||
self.file = SSLFakeFile(self.sock)
|
||||
# RFC 3207:
|
||||
# The client MUST discard any knowledge obtained from
|
||||
# the server, such as the list of SMTP service extensions,
|
||||
# which was not obtained from the TLS negotiation itself.
|
||||
self.helo_resp = None
|
||||
self.ehlo_resp = None
|
||||
self.esmtp_features = {}
|
||||
self.does_esmtp = 0
|
||||
return (resp, reply)
|
||||
|
||||
def sendmail(self, from_addr, to_addrs, msg, mail_options=[],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue