skip montanaro dwooqfuuguserssourceforgenet update cvsrootspambayesspambayesspambayes directory sc8prcvs8sourceforgenettmpcvsserv16608spambayes modified files tag coresvr corepluginpy optionspy xmlrpcpluginpy log message progress sort xmlrpc server running index corepluginpy rcs file cvsrootspambayesspambayesspambayesatticcorepluginpyv retrieving revision 1121 retrieving revision 1122 diff c2 r1121 r1122 corepluginpy 28 may 2007 213853 0000 1121 corepluginpy 29 may 2007 012717 0000 1122 36 38 import sys __author__ skip montanaro iybzpoboxcom __credits__ spambayes folk 1019 selfname name selfui ui class pluginui defaults def __init__self selfplugin_map spambayes import options optionsdefaultsplugin selfdefaults optionsload_options 1220 selfname name selfui ui selfhammie none def set_hammieself hammie selfhammie hammie class pluginui pass index optionspy rcs file cvsrootspambayesspambayesspambayesoptionspyv retrieving revision 114123 retrieving revision 114124 diff c2 r114123 r114124 optionspy 24 may 2007 031934 0000 114123 optionspy 29 may 2007 012717 0000 114124 12951298 12951309 rww_ww restore plugin xmlrpc_path _xmlrpc path sbrpc _the path respond rw restore xmlrpc_host _xmlrpc host localhost _the host listen server restore xmlrpc_port _xmlrpc port 8001 _the port listen rd restore index xmlrpcpluginpy rcs file cvsrootspambayesspambayesspambayesatticxmlrpcpluginpyv retrieving revision 1121 retrieving revision 1122 diff c2 r1121 r1122 xmlrpcpluginpy 28 may 2007 213853 0000 1121 xmlrpcpluginpy 29 may 2007 012717 0000 1122 130 coreplugin import plugin pluginui spambayesoptionsclass import spambayesoptions import _ class xmlrpcuipluginui defaults xmlrpc_path _xmlrpc path sbrpc _the path respond rw restore xmlrpc_host _xmlrpc host localhost _the host listen server restore xmlrpc_port _xmlrpc port 8001 _the port listen rd restore def __init__self pluginui__init__self configuration options offer users selfplugin_map _xmlrpc options none plugin xmlrpc_path plugin xmlrpc_host plugin xmlrpc_port def register return pluginxmlrpc xmlrpcui 166 import threading email import message message_from_string simplexmlrpcserver import simplexmlrpcserver simplexmlrpcrequesthandler coreplugin import plugin pluginui spambayesoptionsclass import spambayesoptions import _ options class xmlrpcuipluginui plugin_map _xmlrpc options none plugin xmlrpc_path plugin xmlrpc_host plugin xmlrpc_port class xmlrpcpluginplugin def __init__self name ui plugin__init__self name ui host optionsplugin xmlrpc_host port optionsplugin xmlrpc_port path optionsplugin xmlrpc_path selfserver simplexmlrpcserverhost port path enforced python 25 later set anyway selfserverrequesthandlerclassrpc_paths path selfserverregister_functionselfscore selfserverregister_functionselfscore_mime selfthread threadingthreadtargetselfserverserve_forever selfthreadstart placeholders def scoreself form attachments extra_tokens mime_message form_to_mimeform attachments tokens return selfscore_mimemime_message def score_mimeself msg try isinstancemsg str unicode msg message_from_stringmsg tokens tokenizertokenizemsg return selfstatebayesspamprobtokens evidencetrue except import traceback tracebackprint_exc def form_to_mimeform attachments extra_tokens msg messagemessage msgset_typemultipartdigest main messagemessage mainset_payload joinstrv v formvalues msgattachmain msg_type content attachments attachment messagemessage attachmentset_typemsg_type attachmentset_payloadcontent msgattachattachment extra_tokens extra messagemessage extraset_payload joinextra_tokens msgattachextra return msg def register return xmlrpcpluginxmlrpc xmlrpcui _______________________________________________ spambayescheckins mailing list pnperxdpvsarswdlppythonorg httpmailpythonorgmailmanlistinfospambayescheckins tue 05 aug 2008 171920 0700 spambayescheckins spambayesspambayes corepluginpy 1121 1122 optionspy 114123 114124 xmlrpcpluginpy 1121 1122