help neede with train script

Rodney D. Myers rdmyers at pe.net
Thu May 29 22:19:42 CEST 2003


On Thu, 29 May 2003 15:15:42 -0400
David Relson <relson at osagesoftware.com> wrote:

> 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

Dave,

Thanks. I had tinkered with the "bulk" mode, but was giving the wrong
syntax.

As I type this,it is doing it's job, with your suggestions.

If anyone wants "my" version of the working script, let me know.

it's hard coded for my directory structure, but it's a starting point.

-- 
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/20030529/aa51e25e/attachment.sig>


More information about the Bogofilter mailing list