From 54e275cf11f7ac021668f3892a6b16e0d3314e1d Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Thu, 6 Jul 2000 16:56:57 +0000 Subject: intermediate --- Mailman/pythonlib/smtplib.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'Mailman/pythonlib') diff --git a/Mailman/pythonlib/smtplib.py b/Mailman/pythonlib/smtplib.py index 1c42233f2..c7865ad50 100755 --- a/Mailman/pythonlib/smtplib.py +++ b/Mailman/pythonlib/smtplib.py @@ -2,14 +2,6 @@ '''SMTP/ESMTP client class. -Author: The Dragon De Monsyne -ESMTP support, test code and doc fixes added by - Eric S. Raymond -Better RFC 821 compliance (MAIL and RCPT, and CRLF in data) - by Carey Evans , for picky mail servers. - -This was modified from the Python 1.5 library HTTP lib. - This should follow RFC 821 (SMTP) and RFC 1869 (ESMTP). Notes: @@ -39,6 +31,14 @@ Example: >>> s.quit() ''' +# Author: The Dragon De Monsyne +# ESMTP support, test code and doc fixes added by +# Eric S. Raymond +# Better RFC 821 compliance (MAIL and RCPT, and CRLF in data) +# by Carey Evans , for picky mail servers. +# +# This was modified from the Python 1.5 library HTTP lib. + import socket import string import re @@ -213,7 +213,7 @@ class SMTP: if not port: port = SMTP_PORT self.sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) if self.debuglevel > 0: print 'connect:', (host, port) - self.sock.connect(host, port) + self.sock.connect((host, port)) (code,msg)=self.getreply() if self.debuglevel >0 : print "connect:", msg return (code,msg) -- cgit v1.2.3-70-g09d2