training is SLOW
Rodney D. Myers
rdmyers at pe.net
Mon Aug 11 05:03:45 CEST 2003
On Sun, 10 Aug 2003 16:46:49 -0400
David Relson <relson at osagesoftware.com> wrote:
> Next idea (sweet and simple; undoubtedly can be improved):
script deleted.
> done
I'm no programmer. And your script wouldn't work for me, so I've been
abusing the bash shell ;-), and came up with my solution, and it is not
very elegant, but it works;
#! /bin/sh
echo "Now tinkering with the SPAM"
cat /home/rodney/Mail/spam-counted/* > /tmp/spam.mbx
echo "Now tinkering with the HAM"
cat /home/rodney/Mail/Computer/anti-m$/* >/tmp/ham.mbx
cat /home/rodney/Mail/Computer/arrl/* >>/tmp/ham.mbx
cat /home/rodney/Mail/Computer/bogofilter/* >>/tmp/ham.mbx
cat /home/rodney/Mail/Computer/crypto/* >>/tmp/ham.mbx
cat /home/rodney/Mail/Computer/debian-news/* >>/tmp/ham.mbx
cat /home/rodney/Mail/Computer/debian-users/* >>/tmp/ham.mbx
cat /home/rodney/Mail/Computer/debian-vendor/* >>/tmp/ham.mbx
== many lines deleted ==
echo "creating the word lists - SPAM"
/usr/local/bin/bogofilter -svvv < /tmp/spam.mbx
echo "creating the word lists - HAM"
/usr/local/bin/bogofilter -nvvv < /tmp/ham.mbx
It appears to work, as a listing of the wordlist.db is;
ls -la .bogofilter/wordlist.db
-rw-r--r-- 1 rodney rodney 152567808 Aug 10 19:58 .bogofilter/wordlist.db
The above was used, and abused from an existing bash script.
--
Rodney D. Myers <rdmyers at pe.net> Registered Linux User #96112
ICQ#: AIM#: YAHOO:
18002350 mailman452 mailman42_5
They that can give up essential liberty to obtain a
little temporary safety deserve neither liberty nor safety.
Ben Franklin - 1759
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://www.bogofilter.org/pipermail/bogofilter/attachments/20030810/10c1b557/attachment.sig>
More information about the Bogofilter
mailing list