[Spambayes] SpamBayes
Toby Dickenson
tdickenson at devmail.geminidataloggers.co.uk
Mon Feb 28 11:22:36 CET 2005
On Saturday 26 February 2005 21:57, ac287 at city.ac.uk wrote:
> Hi
>
> Im currently doing a study, as part of my degree, to investigate whether
> diversity can be applied to spam filters to improve their effectiveness.
Spambayes-dev at python.org might be a better audience.
> I just had a few questions regarding SpamBayes.
>
> Is it possible to pipe/redirect messages through spambayes one at a time
> using the DOS command line to classify messages? If so what would the
> command look like for a message named test.txt (for example).
Pipe it into sb_filter.py
For command line options, run "sb_filter -h" or read the source.
> Also once the message has been piped through how can I then check whether
> it has been classified as spam/ham or unsure?
The message appears on stdout with a couple of extra headers
$ echo -e "From: noone\n\nHello world"|python sb_filter.py
From: noone
X-Spambayes-Classification: spam; 0.91
X-Spambayes-Evidence: '*H*': 0.12; '*S*': 0.93; 'to:none': 0.72; 'world':
0.80;
'message-id:invalid': 0.99
Hello world
--
Toby Dickenson
More information about the Spambayes
mailing list