BSD Ports

mail/bogofilter-sqlite 1.3.0.r1_2 FreeBSD

Fast, teachable, learning spam detector (SQLite3 database)

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
edee11f3ad
License
GPLv2+
Categories
mail
Package size
337.3 KiB, 1499.0 KiB installed

Description

Bogofilter is a trainable email spam detector.

Bogofilter takes an email message or other text on standard input, parses it into words, does a statistical check against databases of "good" and "bad" words, and returns a status code indicating whether or not the message is spam. Bogofilter decodes base64 or quoted-printable encoded texts and ignores non-text attachments and HTML comments.

The supported database backends are LMDB, Kyoto Cabinet and SQLite3. The upstream version would theoretically also support QDBM and Tokyo Cabinet, but these are not currently available as FreeBSD ports. Berkeley DB support is being phased out.

Install

Binary package:

pkg install bogofilter-sqlite

From the ports tree:

cd /usr/ports/mail/bogofilter-sqlite/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	bogofilter-sqlite>0:mail/bogofilter-sqlite

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.3.0.r1_21.3.0.r1_21.2.5_31.3.0.r11.3.0.r1_2
FreeBSD:14:quarterly1.3.0.r1_21.3.0.r1_2n/a1.3.0.r11.3.0.r1_2
FreeBSD:15:latest1.3.0.r1_21.3.0.r1_2n/a1.3.0.r11.3.0.r1
FreeBSD:15:quarterly1.3.0.r1_21.3.0.r1_2n/an/an/a
FreeBSD:16:latest1.3.0.r1_21.3.0.r1_2n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 6
Run dependencies 7

No port depends on this one.

Configuration

No options to configure.

USES
sqlite
Service scripts
none
Conflicts with
bogofilter bogofilter-kc bogofilter-lmdb1

Files

No file lists for this port.

Commit history 2

DateCommitCreditsLog message
edee11f3ad Matthias Andree mail/bogofilter*: fix unaligned access on some databases
This was found with the undefined behavior sanitizer, and affects the generic code (independent of the concrete database back-end in use) so we need to bump all PORTREVISIONS. The bug was that internal code was casting a void * to a uint32_t * without ensuring alignment of the source value. Let's use memcpy to a statically-sized array and let the optimizer handle it for us. Adds files/patch-src_datastore.c. PR: 297024 MFH: 2026Q3
9d0203aad0 Matthias Andree mail/bogofilter*: Prepare LMDB 1.0 transition
Here's what we do now: - mail/bogofilter currently depends on lmdb0, a 0.9.X port, so it continues to work as before - add a new mail/bogofilter-lmdb1 port that depends on lmdb, the 1.0 version of the LMDB database. - add the upstream patch for bogofilter 1.3.0.rc1 that I made and that delphij@ prepared for integration into the ports tree - thanks! Here's the plan for end of 2026: - AT THE SAME TIME: - upgrade mail/bogofilter to depend on LMDB 1.0 - portrm mail/bogofilter-lmdb1 - add a MOVED entry to redirect from bogofilter-lmdb1 to bogofilter. While here, clean up and rearrange the Makefiles. PR: 296519 Reviewed by: arrowd Pull Request: https://github.com/freebsd/freebsd-ports/pull/551