Update of /cvsroot/spambayes/spambayes/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10663
Modified Files:
sb_server.py
Log Message:
On a RETR command, my POP3 server returns the message size following the
"+OK" in the status line. That caused SpamBayes to think it was an error
because the entire status line didn't exactly match "+OK". To prevent this,
split off the first word of the status line and only compare that to "+OK".
Index: sb_server.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/scripts/sb_server.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** sb_server.py 29 Nov 2004 00:17:58 -0000 1.31
--- sb_server.py 20 Dec 2004 15:42:17 -0000 1.32
***************
*** 474,478 ****
# Break off the first line, which will be '+OK'.
! ok, messageText = response.split('\n', 1)
if ok.strip().upper() != "+OK":
# Must be an error response. Return unproxied.
--- 474,479 ----
# Break off the first line, which will be '+OK'.
! statusLine, messageText = response.split('\n', 1)
! ok, statusRemainder = statusLine.split(None, 1)
if ok.strip().upper() != "+OK":
# Must be an error response. Return unproxied.
_______________________________________________
Spambayes-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/spambayes-checkins