[Spambayes-checkins] spambayes pop3proxy.py,1.76,1.77

Tim Stone timstone4 at users.sourceforge.net
Mon Apr 21 06:18:49 EDT 2003


Update of /cvsroot/spambayes/spambayes
In directory sc8-pr-cvs1:/tmp/cvs-serv20566

Modified Files:
	pop3proxy.py 
Log Message:
Didn't catch all uses of HEADER_EXAMPLE, which was removed

Index: pop3proxy.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/pop3proxy.py,v
retrieving revision 1.76
retrieving revision 1.77
diff -C2 -d -r1.76 -r1.77
*** pop3proxy.py	21 Apr 2003 00:36:23 -0000	1.76
--- pop3proxy.py	21 Apr 2003 12:18:45 -0000	1.77
***************
*** 411,415 ****
                  if match:
                      number = int(match.group(1))
!                     size = int(match.group(2)) + len(HEADER_EXAMPLE)
                      line = "%d %d" % (number, size)
                  outputLines.append(line)
--- 411,415 ----
                  if match:
                      number = int(match.group(1))
!                     size = int(match.group(2)) + HEADER_SIZE_FUDGE_FACTOR
                      line = "%d %d" % (number, size)
                  outputLines.append(line)
***************
*** 419,423 ****
              match = re.search('^\+OK\s+(\d+)(.*)\r\n', response)
              if match:
!                 size = int(match.group(1)) + len(HEADER_EXAMPLE)
                  return "+OK %d%s\r\n" % (size, match.group(2))
              else:
--- 419,423 ----
              match = re.search('^\+OK\s+(\d+)(.*)\r\n', response)
              if match:
!                 size = int(match.group(1)) + HEADER_SIZE_FUDGE_FACTOR
                  return "+OK %d%s\r\n" % (size, match.group(2))
              else:





More information about the Spambayes-checkins mailing list