help neede with train script
David Relson
relson at osagesoftware.com
Thu May 29 21:15:42 CEST 2003
At 02:54 PM 5/29/03, Rodney D. Myers wrote:
>I'm trying to setup a personal script, or make available to anyone that
>wants, a script that will read directories to search, and mark
>messages as spam/ham.
>
>The trainbogo.sh works fine, except it requires that I move all known
>good message into a separate folder.
>
>I'm trying to leave each individual message in it respective folder, and
>count it there.
>
>Tinkering with my SPAM folder, I've been trying the following;
>
>cat /home/rodney/Mail/oldspam/* | /usr/local/bin/bogofilter -svvv
Rodney,
The command above is telling bogofilter to register all the messages in "1
mailbox". Mailbox format includes a "^From " separator line at the
beginning of each message. Do you have these?
If not, you can use bulk mode - "ls oldspam/* | bogofilter -b -svvv" (with
appropriate path). If bash complains that the command line is too long,
you'll need to use "find oldspam -type f" to generate the file list. If
you have multiple folders, each containing a mailbox formatted file, the
mailboxes can be given to bogofilter one at a time to incrementatlly build
the spamlist.db file.
Hope this helps :-)
David
>but, it tells me;
>
># 42361 words, 6 messages
>bogofilter: 1409 messages on the spam list
>
>which is incorrect, as there are over 1000 messages in the spam folder.
>
>What would be the correct syntax, or point me in the correct location to
>attempt to get this working.
>
>Thanks
>
>--
>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
More information about the Bogofilter
mailing list