Hi, I try to train spambayes from a script. This script detects when I move a mail on my imap account (from the inbox) to other imap folder. If this folder is the spam folder, then I want to train spambayes that mail as spam. If the folder is a usual storage folder (like "family" for mails from the family), then train spambayes this message as ham.
>From this article in lwn http://lwn.net/Articles/173206/ I read that popfile seems to work that way. I want to train the ham/spam mails via the xmlrpc server (any other ideas?), so I could run my scripts from any other hosts and the mail server only needs spambayes (incl. the xml rpc server) running. Now the sb_xmlrpcserver.py gets my requests and seems to train the mails but the server doesnt write the storage files back. With lsof I can see, that the server process keeps the file open. I see that the storage file is not altered when I train spambayes (with the xml rpc server). My mail filtering procmail pipes the mails through a sb_filter.py process. Do I need to modify the xmlrpc server to write the trainings data back? Is there anything else I could do? I thought that I let my imap script via cron and let the xml rpc server run all the time. Any ideas how I get the trainings data back on disk, so the procmail filter process sees them? tia joerg _______________________________________________ [email protected] http://mail.python.org/mailman/listinfo/spambayes Check the FAQ before asking: http://spambayes.sf.net/faq.html
