---
name: bmf
version: 0.9.4_1
origin: mail/bmf
comment: A fast Bayesian Mail Filter compatible with maildrop and procmail
arch: freebsd:9:x86:64
www: http://sourceforge.net/projects/bmf
maintainer: ports@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 90739
desc: |
  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.

  WWW: http://sourceforge.net/projects/bmf
deps:
  db4: {origin: databases/db4, version: '4.0.14_1,1'}
categories: [mail]
options: {BDB: on, DEBUG: off, MYSQL: off}
files:
  /usr/local/bin/bmf: 86ed2f123c013b9b1918a11982703651870e390f448f198f7cc1d672b286062d
  /usr/local/bin/bmfconv: 93ea40cedd982b41a7a8becf15780a78bda52e57031da0bd4cc21272234ce95c
  /usr/local/man/man1/bmf.1.gz: 95a605ae5a0b378866585155a50f0e2b7f3ed2e39a23fd76b2a68027fce81d4b
  /usr/local/man/man1/bmfconv.1.gz: 85b9547ce91d2325612e26ff09619ac02fe2564a569ae43656703246bebb6e8d
  /usr/local/share/bmf/README: e48ced351c94b12ce76785042e2c60febbd4583a268a80bbffde608058fa543a
directories:
  /usr/local/share/bmf/: n
scripts: {}
message: "============================\n=== How to integrate bmf ===\n============================\n\nFor
  maildrop(1), use only one of the following examples.  The first\nsample invokes
  bmf in its normal mode of operation and the second\ninvokes bmf as a filter:\n\n\t###
  Sample One\n\t# Invoke bmf and use return code to filter spam in one step\n\texception
  {\n\t\t`bmf`\n\t\tif ( $RETURNCODE == 0 )\n\t\t\tto $MAILDIR/spam\n\t}\n\n\t###
  Sample Two\n\t# Invoke bmf as a filter\n\texception {\n\t\txfilter \"bmf -p\"\n\t\tif
  (/^X-Spam-Status: Yes/)\n\t\t\tto $MAILDIR/spam\n\t}\n\n\nFor procmail(1), use only
  one of the following samples.  SPAM will be\nfiltered into $MAILDIR/spam.  The first
  sample invokes bmf in its\nnormal mode of operation and the second invokes bmf as
  a filter.\n\n\t### begin sample one ###\n\t# Invoke bmf and use return code to filter
  spam in one step\n\t:0HB\n\t* ? bmf\n\t| formail -A\"X-Spam-Status: Yes, tests=bmf\"
  >>$MAILDIR/spam\n\n\t### begin sample two ###\n\t# Invoke bmf as a filter\n\t:0
  fw\n\t| bmf -p\n\n\t# Filter spam\n\t:0:\n\t^X-Spam-Status: Yes\n\t$MAILDIR/spam\n\nIf
  you put bmf in your maildrop or procmail scripts as suggested\nabove, it will always
  register an email as either spam or non-spam.\nTo reverse this registration and
  train bmf, the following mutt macros\nmay be useful:\n\n  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\"\n  macro index \\et \"<pipe-entry>bmf -t\\n<enter-command>set
  wait_key\\n\" \"Tests a given message to see if it is SPAM\"\n  macro index \\eu
  \"<pipe-entry>bmf -N\\n<enter-command>set wait_key\\n<save-message>=inbox\\n\" \"Untags
  a given message as SPAM\"\n\nThese will override these commands:\n\n  <Esc>d = de-register
  as non-spam, register as spam, and move to spam folder.\n  <Esc>t = test for spamicity.\n
  \ <Esc>u = de-register as spam, register as non-spam, and move to inbox folder.\n\nPlease
  see the ${PREFIX}/share/bmf/README for further details.\n"
