diff options
author | Guido van Rossum <guido@python.org> | 1999-01-14 04:18:46 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-01-14 04:18:46 (GMT) |
commit | 348fd06890a964e713e151526b0de5042c68574e (patch) | |
tree | 1be5bce0767c6231462ab493dd22255ce94bec30 /Lib | |
parent | e1bf7e8c1d5ec4e16a7dc772e3e6091e773e5007 (diff) | |
download | cpython-348fd06890a964e713e151526b0de5042c68574e.zip cpython-348fd06890a964e713e151526b0de5042c68574e.tar.gz cpython-348fd06890a964e713e151526b0de5042c68574e.tar.bz2 |
In rcpt(), avoid a space after the TO: address when the option list is
empty. Make sure there is a space when there are options.
Diffstat (limited to 'Lib')
-rwxr-xr-x | Lib/smtplib.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/smtplib.py b/Lib/smtplib.py index 264eafb..ebaf7f2 100755 --- a/Lib/smtplib.py +++ b/Lib/smtplib.py @@ -294,8 +294,8 @@ class SMTP: """SMTP 'rcpt' command -- indicates 1 recipient for this mail.""" optionlist = '' if options and self.does_esmtp: - optionlist = string.join(options, ' ') - self.putcmd("rcpt","TO:%s %s" % (quoteaddr(recip),optionlist)) + optionlist = ' ' + string.join(options, ' ') + self.putcmd("rcpt","TO:%s%s" % (quoteaddr(recip),optionlist)) return self.getreply() def data(self,msg): |