diff options
| author | guido | 1999-06-09 15:13:10 +0000 |
|---|---|---|
| committer | guido | 1999-06-09 15:13:10 +0000 |
| commit | 6cd80f65a5f2d0bc9e47fc72b932ada994b207e6 (patch) | |
| tree | 5944aacc95c2d335974f4fc0afed56413b4f23a0 /Mailman/pythonlib | |
| parent | 563ba7dd3ee4f0f862dfeadc5119c2d2919534d4 (diff) | |
| download | mailman-6cd80f65a5f2d0bc9e47fc72b932ada994b207e6.tar.gz mailman-6cd80f65a5f2d0bc9e47fc72b932ada994b207e6.tar.zst mailman-6cd80f65a5f2d0bc9e47fc72b932ada994b207e6.zip | |
Diffstat (limited to 'Mailman/pythonlib')
| -rwxr-xr-x | Mailman/pythonlib/smtplib.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Mailman/pythonlib/smtplib.py b/Mailman/pythonlib/smtplib.py index 370182e9f..8cca5908e 100755 --- a/Mailman/pythonlib/smtplib.py +++ b/Mailman/pythonlib/smtplib.py @@ -231,7 +231,10 @@ class SMTP: def putcmd(self, cmd, args=""): """Send a command to the server.""" - str = '%s %s%s' % (cmd, args, CRLF) + if args == "": + str = '%s%s' % (cmd, CRLF) + else: + str = '%s %s%s' % (cmd, args, CRLF) self.send(str) def getreply(self): @@ -345,8 +348,8 @@ class SMTP: """SMTP 'mail' command -- begins mail xfer session.""" optionlist = '' if options and self.does_esmtp: - optionlist = string.join(options, ' ') - self.putcmd("mail", "FROM:%s %s" % (quoteaddr(sender) ,optionlist)) + optionlist = ' ' + string.join(options, ' ') + self.putcmd("mail", "FROM:%s%s" % (quoteaddr(sender) ,optionlist)) return self.getreply() def rcpt(self,recip,options=[]): |
