OSBF-Lua

Steve Pellegrin
September 29, 2008

Integrating OSBF-Lua with SquirrelMail

I have written a SquirrelMail plugin that allows users to easily train messages as spam or nonspam. Read all about Training via SquirrelMail for CRM114. Get the equivalent OSBF-Lua versions of the necessary software here:

Automated Training from Corpus

One of the strengths of OSBF-Lua is its training method: TONE-HR. If you use my training scripts, they will compile a corpus of known spam and nonspam messages for each user. Using two additional scripts, you can perform TONE-HR training on your corpus. The scripts can be used to either regenerage your .cfc files from scratch, or to incrementally improve them.

To retrain all users, the Master and User retraining scripts are required. The Master script is executed either manually or periodically and must be run as root. An individual user can retrain her/his filter using only the User script, which runs as the user account.

Note: It is an open question whether periodic (perhaps nightly) retraining improves a filter's ability to discriminate spam from non-spam. You will have to decide for yourself.

Gentoo Linux ebuild for OSBF-Lua

NOTE: I am no longer able to keep the Gentoo ebuild up-to-date becasuse I have switched to FreeBSD. I don't believe that you will find it hard to modify the 2.0.2 ebuild for future versions. You might also want to petition the Gentoo community to see if someone would like to sponsor OSBF-Lua and develop an official ebuild. Or maybe you could do it!

Gentoo does not support OSBF-Lua, so I made my own ebuild file from scratch: osbf-lua-2.0.2.ebuild

To use it, do the following as root:

  1. Copy the file to /usr/local/portage/app-text/osbf-lua
  2. cd /usr/local/portage/app-text/osbf-lua
  3. ebuild osbf-lua-2.0.2.ebuild digest
  4. Edit /etc/portage/package.keywords and add: "app-text/osbf-lua ~x86"
    (replace x86 with an architecture appropriate for your system)
  5. emerge osbf-lua

The osbf-lua files (executables, config, etc.) are installed into /usr/share/osbf-lua.


Valid HTML 4.01 Transitional

Powered by Apache