Bogotune and files in a folder

David Relson relson at osagesoftware.com
Tue Aug 20 05:29:02 CEST 2013


Hi Tamer,

Not sure if the following is the best solution for you, but it should
be easy enough to try:

Combine all the ham mbox's in on large mbox; similarly for spam, i.e:

	DIR=/etc/bogofilter-1.2.4/bogotune
	cat $DIR/good/*.mbox $DIR/good.mbox
	cat $DIR/spam/*.mbox $DIR/spam.mbox
	bogotune ... -n $DIR/good.mbox -s $DIR/spam.mbox

HTH,

David

On Mon, 19 Aug 2013 16:41:25 -0400
Tamer Yousef wrote:

> Hi,
> I'm trying to run bogotune to check for the best settings:
> 
> bogotune -v -T 0  -d ~/.bogofilter
> -n /etc/bogofilter-1.2.4/bogotune/good/ -s /etc/bogofilt
> -1.2.4/bogotune/spam/
> 
> and it returns:
> ---------------------------
> Reading /root/.bogofilter/wordlist.db
> Reading
> /etc/bogofilter-1.2.4/bogotune/good/mboxdata_0000d6b5-710d-4c33-be66-b0d6b333553a.mbox
> 1 messages
> Reading
> /etc/bogofilter-1.2.4/bogotune/spam/mboxdata_00003ff1-d848-40ea-a02f-8d3e9719b249.mbox
> 1 messages
> wordlist's ham to spam ratio is 1.2 to 1.0
> The messages sets contain 1 non-spam and 1 spam.  Bogotune requires at
> least 500 non-spam and 500 spam messages to run.
> 
> how do I change it to consider all .mbox file in the input
> directories? I do not want to run it individually for each file since
> that I only have one message per file so there are thousands of files
> in the non-spam and spam directories.
> 
> Do I need to merge all nonspam messages in one file, and same for spam
> messages and run it this way?
> 
> thanks!
> Tamer
> _______________________________________________
> Bogofilter mailing list
> Bogofilter at bogofilter.org
> http://www.bogofilter.org/mailman/listinfo/bogofilter



More information about the Bogofilter mailing list