skip montanaro dwooqfuuguserssourceforgenet update cvsrootspambayesspambayesspambayes directory sc8prcvs8sourceforgenettmpcvsserv10998 modified files tag coresvr xmlrpcpluginpy log message scored first fake form submission today yay index xmlrpcpluginpy rcs file cvsrootspambayesspambayesspambayesatticxmlrpcpluginpyv retrieving revision 1127 retrieving revision 1128 diff c2 r1127 r1128 xmlrpcpluginpy 6 jun 2007 033737 0000 1127 xmlrpcpluginpy 6 jun 2007 222417 0000 1128 7683 raise xmlrpclibfault404 supported method def scoreself form_dict extra_tokens score dictionary extra tokens mime_message form_to_mimeform_dict extra_tokens return selfscore_mimemime_message def score_mimeself msg_text encoding 7684 raise xmlrpclibfault404 supported method def scoreself form_dict extra_tokens attachments score dictionary extra tokens mime_message form_to_mimeform_dict extra_tokens attachments mime_message unicodemime_messageencodeutf8 return selfscore_mimemime_message utf8 def score_mimeself msg_text encoding 100104 xxx maybe prob selfstatebayesspamprobtokens evidencefalse selfstaterecord_classificationmsggetclassification prob 101107 xxx maybe prob clues selfstatebayesspamprobtokens evidencetrue msgaddsbheadersprob clues selfstaterecord_classificationmsggetclassification prob 112140 return prob def form_to_mimeform mime_type extra_tokens encode submission form bits mime message form dictionary keyvalue pairs representing forms contents extra_tokens sequence synthetic tokens generated caller example include honeypot hidden field form might generate synthetic token tells filled might also generate tokens indicate long submitting username existed many successful posts username submitted msg messagemessage msgset_typemultipartdigest main messagemessage mainset_payload joinss k v k v formitems msgattachmain msg_type content attachments attachment messagemessage attachmentset_typemsg_type attachmentset_payloadcontent msgattachattachment extra_tokens extra messagemessage extraset_payload joinextra_tokens msgattachextra return msg 115160 return prob def form_to_mimeform extra_tokens attachments encode submission form bits mime message form dictionary keyvalue pairs representing forms contents extra_tokens sequence synthetic tokens generated caller example include honeypot hidden field form might generate synthetic token tells filled might also generate tokens indicate long submitting username existed many successful posts username submitted attachments list dictionaries describing attachment payload key required contenttype key applicationoctetstream assumed contenttransferencoding given added headers attachment note keys casesensitive must lower case msg messagemessage msgset_typemultipartdigest msgadd_headersubject form submission main messagemessage mainset_payload joinss k v k v formitems msgattachmain always add extra tokens payload reliably reverse conversion extra messagemessage extraset_typetextplain extraset_payloadnjoinextra_tokens msgattachextra payloads attachments content attachments mime_type contentgetcontenttype applicationoctetstream attachment messagemessage contenttransferencoding content attachmentadd_headercontenttransferencoding contentcontenttransferencoding attachmentset_typemime_type attachmentset_payloadcontentpayload msgattachattachment return msg _______________________________________________ spambayescheckins mailing list pnperxdpvsarswdlppythonorg httpmailpythonorgmailmanlistinfospambayescheckins tue 05 aug 2008 173059 0700 spambayescheckins spambayesspambayes xmlrpcpluginpy 1127 1128