Port details |
- bmf Fast Bayesian Mail Filter compatible with maildrop and procmail
- 0.9.4_2,1 mail =5 0.9.4_2,1Version of this port present on the latest quarterly branch.
- There is no maintainer for this port.
- Any concerns regarding this port should be directed to the FreeBSD Ports mailing list via ports@FreeBSD.org
- Port Added: 2003-03-24 05:08:27
- Last Update: 2024-05-19 06:05:06
- Commit Hash: e31a71e
- People watching this port, also watch:: wine, tclxml, rubygem-amq-protocol, vi-unicode-uhoai, p5-Net-SSLeay
- License: GPLv2
- WWW:
- https://sourceforge.net/projects/bmf/
- Description:
- bmf is an extremely efficient Bayesian mail filter based on
Paul Graham's article, "A Plan for Spam." It's fast, small,
efficient, and more versatile than other Bayesian filters.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- To install the port:
- cd /usr/ports/mail/bmf/ && make install clean
- To add the package, run one of these commands:
- pkg install mail/bmf
- pkg install bmf
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: bmf
- Flavors: there is no flavor information for this port.
- distinfo:
- TIMESTAMP = 1541791646
SHA256 (bmf-0.9.4.tar.gz) = 7eed21802f95df2321ac4c958f99e14d2809852a5708700b633e1abb032c9ce1
SIZE (bmf-0.9.4.tar.gz) = 36740
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Library dependencies:
-
- libmysqlclient.so.21 : databases/mysql80-client
- There are no ports dependent upon this port
Configuration Options:
- ===> The following configuration options are available for bmf-0.9.4_2,1:
DEBUG=off: Build with debugging support
DOCS=on: Build and/or install documentation
MANPAGES=on: Build and/or install manual pages
===> Use 'make config' to modify these settings
- Options name:
- mail_bmf
- USES:
- mysql
- pkg-message:
- For install:
- === How to integrate bmf ===
For maildrop(1), use only one of the following examples. The first
sample invokes bmf in its normal mode of operation and the second
invokes bmf as a filter:
### Sample One
# Invoke bmf and use return code to filter spam in one step
exception {
`bmf`
if ( $RETURNCODE == 0 )
to $MAILDIR/spam
}
### Sample Two
# Invoke bmf as a filter
exception {
xfilter "bmf -p"
if (/^X-Spam-Status: Yes/)
to $MAILDIR/spam
}
For procmail(1), use only one of the following samples. SPAM will be
filtered into $MAILDIR/spam. The first sample invokes bmf in its
normal mode of operation and the second invokes bmf as a filter.
### begin sample one ###
# Invoke bmf and use return code to filter spam in one step
:0HB
* ? bmf
| formail -A"X-Spam-Status: Yes, tests=bmf" >>$MAILDIR/spam
### begin sample two ###
# Invoke bmf as a filter
:0 fw
| bmf -p
# Filter spam
:0:
^X-Spam-Status: Yes
$MAILDIR/spam
If you put bmf in your maildrop or procmail scripts as suggested
above, it will always register an email as either spam or non-spam.
To reverse this registration and train bmf, the following mutt macros
may be useful:
macro index \ed "<enter-command>unset wait_key\n<pipe-entry>bmf -S\n<enter-command>set wait_key\n<save-message>=spam\n" "Tags a given message as SPAM"
macro index \et "<pipe-entry>bmf -t\n<enter-command>set wait_key\n" "Tests a given message to see if it is SPAM"
macro index \eu "<pipe-entry>bmf -N\n<enter-command>set wait_key\n<save-message>=inbox\n" "Untags a given message as SPAM"
These will override these commands:
<Esc>d = de-register as non-spam, register as spam, and move to spam folder.
<Esc>t = test for spamicity.
<Esc>u = de-register as spam, register as non-spam, and move to inbox folder.
Please see the ${PREFIX}/share/bmf/README for further details.
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
0.9.4_2,1 19 May 2024 06:05:06 |
Daniel Engberg (diizzy) |
mail/bmf: Remove support for deprecated Berkeley DB 5.3
Remove support for Berkeley DB 5.3 and switch to MySQL backend instead |
0.9.4_1,1 24 Feb 2024 16:41:42 |
Muhammad Moinur Rahman (bofh) |
mail/bmf: Moved man to share/man
Approved by: portmgr (blanket) |
07 Sep 2022 21:58:51 |
Stefan Eßer (se) |
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner) |
0.9.4,1 07 Sep 2022 21:10:59 |
Stefan Eßer (se) |
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above ) |
0.9.4,1 20 Jul 2022 14:22:19 |
Tobias C. Berner (tcberner) |
mail: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* <ashish@FreeBSD.org>
* Aaron Dalton <aaron@FreeBSD.org>
* Adam David <adam@FreeBSD.org>
* Adam McDougall <mcdouga9@egr.msu.edu>
* Adam Weinberger <adamw@FreeBSD.org>
* Ade Lovett <ade@FreeBSD.org>
* Akinori MUSHA aka knu <knu@idaemons.org>
* Alex Deiter <tiamat@komi.mts.ru>
* Alex Dupre <ale@FreeBSD.org>
* Alex Dupre <sysadmin@alexdupre.com>
* Alex Perel <veers@disturbed.net> (Only the first 15 lines of the commit message are shown above ) |
0.9.4,1 06 Apr 2021 14:31:07 |
Mathieu Arnold (mat) |
Remove # $FreeBSD$ from Makefiles. |
0.9.4,1 23 Sep 2020 18:39:56 |
0mp |
mail/bmf: Revert erroneous update
bmf was incorrectly "updated" from 0.9.4 to 0.84 in r483094. The problem is
that 0.9.4 is a newer version than 0.84. According to Repology[1], other
packaging systems got it right. Let's correct the mistake and introduce
version 0.9.4 back into our ports tree.
[1]: https://repology.org/project/bmf/versions
PR: 232493
Submitted by: reg@ |
0.84_1 13 Aug 2019 22:29:43 |
mat |
onvert to UCL & cleanup pkg-message (categories l-m) |
0.84_1 28 Oct 2018 09:26:13 |
tobik |
Cleanup mail/bmf
- Cleanup MYSQL option: properly declare libmysqlclient dependency,
unbreak with other mysql version/variants
- Respect CC and CFLAGS
- Remove post-patch and simplify with BINARY_ALIAS
- Do not strip binaries twice
- Generate manpages and install them again
PR: 232493 |
0.84 27 Oct 2018 01:57:25 |
swills |
mail/bmf: Update to 0.84
PR: 232493
Submitted by: Nathan <ndowens@yahoo.com> |
0.9.4_3 20 Jan 2017 20:33:31 |
sunpoet |
Update WWW: SF redirects to https://sourceforge.net/projects/<PROJECT_NAME>/ |
0.9.4_3 08 Aug 2016 13:46:50 |
mat |
USE_BDB cleanup.
- USE_BDB=4x+ -> USES=bdb.
- USE_BDB=yes -> USES=bdb.
- USE_BDB=xx -> USES=bdb:xx.
Other modernisations when I see them.
PR: 209183
Sponsored by: Absolight |
0.9.4_3 11 Dec 2015 11:09:26 |
amdmi3 |
- Add LICENSE
- Switch to options helpers |
0.9.4_3 22 Nov 2014 18:42:44 |
antoine |
Cleanup plist |
0.9.4_3 21 Aug 2014 22:50:30 |
mandree |
Berkeley DB cleanup, remove versions 4.0 ... 4.7.
- Mk/bsd.database.mk rewrite, new default to db5.
- db6 is eligible by default only if installed on the system.
- Bump PORTREVISION of all ports that directly depend on BerkeleyDB or
where USE_BDB is found in the port's directory
- Patch a few ports such that they will pick up or work with newer
versions.
- Add UPDATING entry
- Drive-by format fix for pks
- Drop BerkeleyDB option from mail/popular for now, requires more work.
- Exp-run logs linked from the PR below.
- Ports that do not build (IGNORE, BROKEN, etc.) have pro-forma changes
for new Berkeley DB, but are untested.
NOTE: please read UPDATING and the Wiki page before proceeding!
Announcement: http://lists.freebsd.org/pipermail/freebsd-ports-announce/2014-August/000090.html
Wiki reference: https://wiki.freebsd.org/Ports/BerkeleyDBCleanup
PR: 192690
Approved by: portmgr (implicit, PORTREVISION bump on unstaged ports) |
0.9.4_2 16 Jul 2014 03:00:46 |
adamw |
Add DOCS option for ports with PORTDOCS in plist. |
0.9.4_2 18 Apr 2014 02:53:14 |
adamw |
Use OPTIONS helpers, pass proper configure arguments,
and install docs into DOCSDIR, not DATADIR. PORTREVISION
bump for that last change. |
0.9.4_1 09 Jan 2014 23:29:32 |
bapt |
Allow packaging as a USER |
0.9.4_1 03 Jan 2014 01:00:05 |
mandree |
- Attempt to fix build on systems without gcc (error was:
- Stageify.
- No longer silence post-* targets. |
0.9.4_1 20 Sep 2013 19:59:14 |
bapt |
Add NO_STAGE all over the place in preparation for the staging support (cat:
mail) |
0.9.4_1 26 Aug 2012 15:06:48 |
adamw |
Convert to new OPTIONS framework.
In the process, this also fixes BDB support, and actually enables
MYSQL support, which as far as I can tell was never actually enabled
in the 9 years this port has been in the tree. |
0.9.4_1 28 Sep 2011 06:58:39 |
vanilla |
Fix build error with clang. |
0.9.4_1 23 Sep 2011 22:26:39 |
amdmi3 |
- Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead
PR: 157936
Submitted by: myself
Exp-runs by: pav
Approved by: pav |
0.9.4_1 03 Jul 2011 13:53:52 |
ohauer |
- remove MD5 |
0.9.4_1 21 Dec 2009 02:19:12 |
dougb |
For ports maintained by ports@FreeBSD.org, remove names and/or
e-mail addresses from the pkg-descr file that could reasonably
be mistaken for maintainer contact information in order to avoid
confusion on the part of users looking for support. As a pleasant
side effect this also avoids confusion and/or frustration for people
who are no longer maintaining those ports. |
0.9.4_1 22 Aug 2009 00:28:34 |
amdmi3 |
- Switch SourceForge ports to the new File Release System: categories starting
with M |
0.9.4_1 13 Dec 2006 16:14:17 |
linimon |
Reset seanc@FreeBSD.or due to maintainer-timeouts and no response to email.
Hat: portmgr |
0.9.4_1 25 Mar 2006 23:32:48 |
krion |
Pet portlint. |
0.9.4_1 22 Jan 2006 12:50:54 |
edwin |
SHA256ify
Approved by: krion@ |
0.9.4_1 08 Jun 2004 14:07:35 |
vs |
Fix typo in conditional.
PR: ports/65415
Submitted by: Jos Backus
Approved by: maintainer-silence |
0.9.4_1 31 Mar 2004 03:12:58 |
trevor |
SIZEify (maintainer timeout) |
0.9.4_1 13 Apr 2003 21:56:57 |
seanc |
By default, bmf should use the system's db library and not bdb3. Not bumping
portversion because I don't know if .db files are compatible from one lib to
the next (I suspect they're not). |
0.9.4_1 04 Apr 2003 22:30:16 |
seanc |
Fix bmf to work correctly with db3, db4, and db41.
Noticed by: Keltia on IRC |
0.9.4 25 Mar 2003 00:46:38 |
seanc |
Fix type-o in pkg-message
Submitted by: Jos Backus <jos@catnook.com> |
0.9.4 24 Mar 2003 05:07:52 |
seanc |
Add bmf: a fast (fastest filter I know of) Bayesian Mail Filter (adaptive
spam filter && has hooks for mutt!). Works well with maildrop, procmail,
and can be integrated with all known mailing list software. |