sb_imapfilter(1)

sb_imapfilter1

An imap filter

Overview

An IMAP message box is scanned and all non-scored messages are scored and (where necessary) filtered.

Usage:

sb_imapfilter [options]

note: option values with spaces in them must be enclosed

in double quotes

options:

-p

dbname : pickled training database filename

-d

dbname : dbm training database filename

-t

: train contents of spam folder and ham folder

-c

: classify inbox

-h

: display this message

-v

: verbose mode

-P

: security option to prompt for imap password,

rather than look in options["imap", "password"]

-e y/n

: expunge/purge messages on exit (y) or not (n)

-i debuglvl : a somewhat mysterious imaplib debugging level

(4 is a good level, and suitable for bug reports)

-l minutes

: period of time between filtering operations

-b

: Launch a web browser showing the user interface.

-o section:option:value :

set [section, option] in the options database to value

Classify inbox, with dbm database

sb_imapfilter -c -d bayes.db

Train Spam and Ham, then classify inbox, with dbm database

sb_imapfilter -t -c -d bayes.db

Train Spam and Ham only, with pickled database

sb_imapfilter -t -p bayes.db

Warnings:

o We never delete mail, unless you use the -e/purge option, but we do

mark a lot as deleted, and your mail client might remove that for you. We try to only mark as deleted once the moved/altered message is correctly saved, but things might go wrong. We *strongly* recommend that you try this script out on mail that you can recover from somewhere else, at least at first.

Releases

Unchanged in 3 releases since Debian 8 (Jessie).

  1. 8–10

From spambayes 1.1b1+git20190201.1335ca8-1 in Debian 10 (Buster). Parsed by carta from the page's man source.