text_combined: skip montanaro dwooqfuuguserssourceforgenet update cvsrootspambayesspambayesscripts directory sc8prcvs8sourceforgenettmpcvsserv26612scripts added files tag coresvr core_serverpy log message definitely yet ready prime time need check something fall back new file core_serverpy usrbinenv python primary server spambayes currently serves web interface plugging listeners various protocols tbd first cut creating standalone server uses plugin architecture support different protocols primary motivation web apps like moinmoin trac roundup use spam detection dont necessarily provide mechanisms necessary save ham spam databases retraining providing protocol plugins able fairly easily provide example xmlrpc interface web apps use core server takes care training bells whistles usage core_serverpy options options h displays help message file use named dbm database file p file named pickle database file u port user interface listens port number default 8880 browse httplocalhost8880 b launch web browser showing user interface sectionoptionvalue set section option options database value command line arguments switches take default values html_ui section bayescustomizeini module part spambayes project copyright 2002 python software foundation covered python software foundation license __author__ richie hindle __credits__ tim peters neale pickett tim stone spambayes folk try true false except nameerror maintain compatibility python 22 true false 1 0 try reversed except nameerror maintain compatibility python 22 23 def reversedseq backwards compatibility w pre24 seq listseq seqreverse return iterseq _todo protocol plugin interface pop3 nntp classifier web apps eg trac roundup moin web training interface user interface improvements pieces separate pages make paste box bigger deployment windows executable atlaxwin ctypes webbrowser reload database button new features online manual links project homepage mailing list etc list words stats would paged la spamsieve info slightlywordy index page intro paragraph page stats training results report nham nspam links section homepage project homepage mailing list etc gimmicks graphs something cares import sys getopt time emailheader import header spambayes import dibbler spambayes import storage spambayesoptions import options _ spambayesuserinterface import userinterfaceserver spambayesversion import get_current_version spambayescoreui import coreuserinterface corestate alreadyrunningexception increase stack size macos x stolen libtestregrtestpy sysplatform darwin try import resource except importerror pass else soft hard resourcegetrlimitresourcerlimit_stack newsoft minhard maxsoft 10242048 resourcesetrlimitresourcerlimit_stack newsoft hard optionparsing helper functions def _addressandports decode string representing port bind optional address sstrip addr port ssplit return addr intport else return ints def _addressportstraddr port encode string representing port bind optional address addr return strport else return sd addr port def mainstate runs proxy forever kill command received someone hits ctrlbreak http_server userinterfaceserverstateui_port http_serverregistercoreuserinterfacestate dibblerrunlaunchbrowserstatelaunch_ui __main__ driver def run read arguments try opts args getoptgetoptsysargv1 hbdpluo except getopterror msg print sysstderr strmsg nn __doc__ sysexit state corestate opt arg opts opt h print sysstderr __doc__ sysexit elif opt b statelaunch_ui true p handled storagedatabase_type call case wondering missing elif opt l stateproxyports _addressandporta argsplit elif opt u stateui_port intarg elif opt optionsset_from_cmdlinearg sysstderr statedb_name stateuse_db storagedatabase_typeopts let user know using v get_current_version print sn vget_long_versionspambayes core proxy 0 lenargs 2 normal usage optional server name port number lenargs 1 stateservers args0 110 elif lenargs 2 stateservers args0 intargs1 try stateprepare except alreadyrunningexception print sysstderr error proxy already running machine print sysstderr please stop existing proxy try return kick everything try mainstate finally stateclose else print sysstderr __doc__ __name__ __main__ run _______________________________________________ spambayescheckins mailing list pnperxdpvsarswdlppythonorg httpmailpythonorgmailmanlistinfospambayescheckins tue 05 aug 2008 170148 0700 spambayescheckins spambayesscripts core_serverpy none 1121