[Spambayes-checkins] spambayes smtpproxy.py,1.9,1.10
Tony Meyer
anadelonbrin at users.sourceforge.net
Mon Aug 25 20:29:42 EDT 2003
Update of /cvsroot/spambayes/spambayes
In directory sc8-pr-cvs1:/tmp/cvs-serv19754
Modified Files:
smtpproxy.py
Log Message:
Don't convert unknown commands to upper case as this mucks about with
passwords, which might be case sensitive.
Index: smtpproxy.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/smtpproxy.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** smtpproxy.py 25 Aug 2003 01:40:40 -0000 1.9
--- smtpproxy.py 26 Aug 2003 02:29:40 -0000 1.10
***************
*** 213,217 ****
else:
splitCommand = self.request.strip().split(None, 1)
! self.command = splitCommand[0].upper()
self.args = splitCommand[1:]
--- 213,217 ----
else:
splitCommand = self.request.strip().split(None, 1)
! self.command = splitCommand[0]
self.args = splitCommand[1:]
***************
*** 324,328 ****
def onTransaction(self, command, args):
! handler = self.handlers.get(command, self.onUnknown)
return handler(command, args)
--- 324,328 ----
def onTransaction(self, command, args):
! handler = self.handlers.get(command.upper(), self.onUnknown)
return handler(command, args)
More information about the Spambayes-checkins
mailing list