Logged In: YES user_id=125380 Browser: Mozilla/4.76 [en] (X11; U; Linux 2.4.0-test12 i686; Nav)
Ran into a problem where WorldPilot could not send mail via Courier mailserver.
Here is the fix (context unified diff against current CVS sources)
--- WPsmtplib.py~ Wed Dec 20 17:56:41 2000 +++ WPsmtplib.py Wed Dec 20 17:57:57 2000 @@ -231,7 +231,10 @@
def putcmd(self, cmd, args=""): """Send a command to the server.""" - str = '%s %s%s' % (cmd, args, CRLF) + if args: + str = '%s %s%s' % (cmd, args, CRLF) + else: + str = '%s%s' % (cmd, CRLF) self.send(str)
def getreply(self):
Log in to post a comment.
Logged In: YES
user_id=125380
Browser: Mozilla/4.76 [en] (X11; U; Linux 2.4.0-test12 i686; Nav)
Ran into a problem where WorldPilot could not send mail
via Courier mailserver.
Here is the fix (context unified diff against current
CVS sources)
--- WPsmtplib.py~ Wed Dec 20 17:56:41 2000
+++ WPsmtplib.py Wed Dec 20 17:57:57 2000
@@ -231,7 +231,10 @@
def putcmd(self, cmd, args=""):
"""Send a command to the server."""
- str = '%s %s%s' % (cmd, args, CRLF)
+ if args:
+ str = '%s %s%s' % (cmd, args, CRLF)
+ else:
+ str = '%s%s' % (cmd, CRLF)
self.send(str)
def getreply(self):