[Spambayes-checkins] spambayes/scripts sb_imapfilter.py,1.50,1.51

Tony Meyer anadelonbrin at users.sourceforge.net
Tue Jan 4 01:19:36 CET 2005


Update of /cvsroot/spambayes/spambayes/scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1932/scripts

Modified Files:
	sb_imapfilter.py 
Log Message:
Allow the UI to be served even if it would otherwise not be for testing purposes (this
 is never used by the script running regularly).

Fix a typo identified by Thomas Heller.

Index: sb_imapfilter.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/scripts/sb_imapfilter.py,v
retrieving revision 1.50
retrieving revision 1.51
diff -C2 -d -r1.50 -r1.51
*** sb_imapfilter.py	23 Dec 2004 18:14:32 -0000	1.50
--- sb_imapfilter.py	4 Jan 2005 00:19:34 -0000	1.51
***************
*** 978,982 ****
  
  
! def run():
      try:
          opts, args = getopt.getopt(sys.argv[1:], 'hbPtcvl:e:i:d:p:o:')
--- 978,982 ----
  
  
! def run(force_UI=False):
      try:
          opts, args = getopt.getopt(sys.argv[1:], 'hbPtcvl:e:i:d:p:o:')
***************
*** 1051,1055 ****
      else:
          pwd = None
!         if not launchUI:
              print "You need to specify both a server and a username."
              sys.exit()
--- 1051,1055 ----
      else:
          pwd = None
!         if not launchUI and not force_UI:
              print "You need to specify both a server and a username."
              sys.exit()
***************
*** 1088,1092 ****
  
          # Load stats manager.
!         stats = Stats(options, message_db)
          
          httpServer = UserInterfaceServer(options["html_ui", "port"])
--- 1088,1092 ----
  
          # Load stats manager.
!         stats = Stats.Stats(options, message_db)
          
          httpServer = UserInterfaceServer(options["html_ui", "port"])



More information about the Spambayes-checkins mailing list