23586950 problem in UTILITY/PYTHON
authorJohn Beck <John.Beck@Oracle.COM>
Tue, 14 Jun 2016 09:30:12 -0700
changeset 6182 76759d0d5134
parent 6181 c3e246df6a81
child 6183 f1a79541c99d
23586950 problem in UTILITY/PYTHON
components/python/python27/patches/31-smtplib.patch
components/python/python34/patches/29-smtplib.patch
components/python/python35/patches/32-smtplib.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/python27/patches/31-smtplib.patch	Tue Jun 14 09:30:12 2016 -0700
@@ -0,0 +1,18 @@
+This patch comes from upstream:
+
+https://hg.python.org/cpython/rev/d590114c2394
+
+--- a/Lib/smtplib.py	Sun Nov 08 01:03:52 2015 -0500
++++ b/Lib/smtplib.py	Sat Jun 11 13:18:56 2016 -0700
+@@ -656,6 +656,11 @@
+             self.ehlo_resp = None
+             self.esmtp_features = {}
+             self.does_esmtp = 0
++        else:
++            # RFC 3207:
++            # 501 Syntax error (no parameters allowed)
++            # 454 TLS not available due to temporary reason
++            raise SMTPResponseException(resp, reply)
+         return (resp, reply)
+ 
+     def sendmail(self, from_addr, to_addrs, msg, mail_options=[],
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/python34/patches/29-smtplib.patch	Tue Jun 14 09:30:12 2016 -0700
@@ -0,0 +1,18 @@
+This patch comes from upstream:
+
+https://hg.python.org/cpython/rev/d590114c2394
+
+--- a/Lib/smtplib.py	Sun Nov 08 01:03:52 2015 -0500
++++ b/Lib/smtplib.py	Sat Jun 11 13:18:56 2016 -0700
+@@ -695,6 +695,11 @@
+             self.ehlo_resp = None
+             self.esmtp_features = {}
+             self.does_esmtp = 0
++        else:
++            # RFC 3207:
++            # 501 Syntax error (no parameters allowed)
++            # 454 TLS not available due to temporary reason
++            raise SMTPResponseException(resp, reply)
+         return (resp, reply)
+ 
+     def sendmail(self, from_addr, to_addrs, msg, mail_options=[],
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/python35/patches/32-smtplib.patch	Tue Jun 14 09:30:12 2016 -0700
@@ -0,0 +1,18 @@
+This patch comes from upstream:
+
+https://hg.python.org/cpython/rev/d590114c2394
+
+--- a/Lib/smtplib.py	Sun Nov 08 01:03:52 2015 -0500
++++ b/Lib/smtplib.py	Sat Jun 11 13:18:56 2016 -0700
+@@ -773,6 +773,11 @@
+             self.ehlo_resp = None
+             self.esmtp_features = {}
+             self.does_esmtp = 0
++        else:
++            # RFC 3207:
++            # 501 Syntax error (no parameters allowed)
++            # 454 TLS not available due to temporary reason
++            raise SMTPResponseException(resp, reply)
+         return (resp, reply)
+ 
+     def sendmail(self, from_addr, to_addrs, msg, mail_options=[],