bsfilter - Bayesian spam filter written in Ruby

Property Value
Distribution FreeBSD 12
Repository FreeBSD Ports Latest amd64
Package filename bsfilter-1.0.19_3.txz
Package name bsfilter
Package version 1.0.19
Package release 3
Package architecture amd64
Package type txz
Category mail ruby
License GPLv2
Download size 30.90 KB
Installed size 135.42 KB
bsfilter is a spam filter using Bayesian(statistical) algorithm.
- a filter which distinguishes spam and non-spam mail
- support mails written in English and Japanese language
- written in Ruby
- support 3 methods for access
-- traditional Unix-style filter. study and judge local files or pipe
-- IMAP. study and judge mails in an IMAP server. IMAP over SSL supported
-- POP proxy. run between POP server and MUA. POP over SSL supported
- distributed under GPL
Before actually using it, it is necessary to prepare a word database.
1. The word contained in clean mail is counted.
$ bsfilter --add-clean ~/Maildir/cur/*
$ cd ~/Maildir/cur/ ; ls | xargs bsfilter -c
2. The word in spam is counted.
$ bsfilter --add-spam ~/Maildir/.spam/cur/*
$ cd ~/Maildir/.spam/cur/ ; ls | xargs bsfilter -s
3. A database is updated for every word.
$ bsfilter -u
===>   NOTICE:
The bsfilter port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:
More information about port maintainership is available at:


Package Version Architecture Repository
bsfilter-1.0.19_3.txz 1.0.19 i386 FreeBSD Ports Quarterly
bsfilter-1.0.19_3.txz 1.0.19 amd64 FreeBSD Ports Quarterly
bsfilter-1.0.19_3.txz 1.0.19 i386 FreeBSD Ports Latest
bsfilter - - -


Name Value
ruby = 2.4.6,1
rubygem-gdbm = 2.0.0,2


Type URL
Binary Package bsfilter-1.0.19_3.txz
Source Package mail/bsfilter

Install Howto

Install bsfilter txz package:

# pkg install bsfilter

See Also

Package Description
bsh-2.0.b6.txz Beanshell java scripting language
bsmtp-1.02_5.txz Batch SMTP support for sendmail, incoming and outgoing
bsmtrace-1.4.txz BSM based intrusion detection system
bsnmp-regex-0.6_2.txz bsnmpd module allowing creation of counters from log files
bsnmp-ucd-0.4.4.txz bsnmpd module that implements parts of UCD-SNMP-MIB
bsod-0.1.txz Experience the authentic Microsoft Windows experience
bsp-5.2.txz Node builder for Doom
bspwm-0.9.9.txz Tiling window manager based on binary space partitioning
bstack-0.1_1.txz Debug tool that shows the stack trace of a running process
bstone-1.1.9_3.txz Source port of Blake Stone
bsvc-2.1_3.txz Extensible hardware simulation framework with MC68K support
btanks-0.9.8083_9.txz Fast 2D tank arcade game with multiplayer and split-screen modes
btoa-5.2_1,1.txz Encode/decode binary to printable ASCII
btor2tools-g20190418.txz Generic parser and tool package for the BTOR2 format
btparse-0.35_1.txz C library for parsing and processing BibTeX data files