[Spambayes-checkins] spambayes pop3proxy.py,1.91,1.92

Richie Hindle richiehindle at users.sourceforge.net
Mon Aug 25 17:57:21 EDT 2003


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

Modified Files:
	pop3proxy.py 
Log Message:
743131: Specifying a POP3 server on the command line but no local
port number (ie. no -l) now works again, defaulting to local port 110.


Index: pop3proxy.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/pop3proxy.py,v
retrieving revision 1.91
retrieving revision 1.92
diff -C2 -d -r1.91 -r1.92
*** pop3proxy.py	25 Aug 2003 09:00:33 -0000	1.91
--- pop3proxy.py	25 Aug 2003 23:57:18 -0000	1.92
***************
*** 799,802 ****
--- 799,806 ----
          elif len(args) == 2:
              state.servers = [(args[0], int(args[1]))]
+         
+         # Default to listening on port 110 for command-line-specified servers.
+         if len(args) > 0 and state.proxyPorts == []:
+             state.proxyPorts = [('', 110)]
  
          start(state=state)





More information about the Spambayes-checkins mailing list