[Spambayes] More explicit prinout ?

papaDoc papaDoc@videotron.ca
Thu Nov 28 19:32:48 2002


Hi,

I'm submitting this patch for pop3proxy.
Instead of having only
BayesProxyListener listening on port 6110.
BayesProxyListener listening on port 6111.
BayesProxyListener listening on port 6112.
the patch makes pop3proxy prints
BayesProxyListener listening on port 6110 for mail.gmc.ulaval.ca:110.
BayesProxyListener listening on port 6111 for pop.videotron.ca:110.
BayesProxyListener listening on port 6112 for pop.videotron.net:110.

This helps you set your stuff, if you don't remember what is the order
of the pop server in Options.py

Please be nice with me this is my first python code modification.
I had to look in the Documentation to find out the type of factoryArgs and
then how to print a tuple.

Index: pop3proxy.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/pop3proxy.py,v
retrieving revision 1.26
diff -r1.26 pop3proxy.py
162c162,166
<         print "%s listening on port %d." % (self.__class__.__name__, port)
---
 >         if len(factoryArgs) >= 2:
 >           print "%s listening on port %d for %s:%d." % 
(self.__class__.__name__, port,
 >                                                         
factoryArgs[0], factoryArgs[1])
 >         else:
 >             print "%s listening on port %d." % 
(self.__class__.__name__, port)


papaDoc





More information about the Spambayes mailing list