当前位置: 首页 > 工具软件 > Bogofilter > 使用案例 >

bogofilter 使用

叶卓君
2023-12-01

bogofilter -B ../sample_mail/non_spam_test/* -n -o0.00,0.99 -k 64 -d ./wordlist

-B, 指明文件列表

-n, 表示为正常邮件

-ospam_cutoff[,hamcutoff]

-k, 指明BDB文件的大小

-d, 指明wordlist所在目录

 

./wordlist下的BDB文件作为内容特征输入; 训练完毕后./wordlist下的文件同时会被更新

 

不需要指明-u参数, 上述语句本身就是增量式训练;

 

 

bogofilter -B ../sample_mail/non_spam_test/* -Ns -o0.00,0.99 -k 64 -d ./wordlist

将已训练过的、non_spam_test下的邮件, 作为垃圾邮件重新训练。

-N, unregister non-spam

-s, register-spam

 

 

 

 

 

 

 

 

 

 

 

 

bogofilter中查看bdb文件:

bogoutil -d filename

 

 

bogofilter分类

bogofilter -B path -v

 

bogofilter推荐参数

n=·ls nonspam | gawk {s = sprintf(“ %s –n %s”, s, $NF);}END{print s}·

Bogotune –C –d wordlist $n $s

$s同上方式获取, 但sprintf中指定为-s

 类似资料: