mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
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.
This commit is contained in:
parent
e1bf7e8c1d
commit
348fd06890
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue