---
name: "sb_mboxtrain"
section: "1"
platform: "linux"
package: "spambayes"
version: "1.1b1+git20190201.1335ca8-1"
release: "Debian 10 (Buster)"
platforms: ["linux"]
url: "https://new.carta.tech/sb_mboxtrain"
---

# sb\_mboxtrain(1)

Train spambayes on all previously-untrained messages in a mailbox.

## NAME

sb\_mboxtrain - Train spambayes on all previously-untrained messages in a mailbox.

## SYNOPSIS

**sb\_mboxtrain** \[*OPTIONS*\] ...

## DESCRIPTION

Usage: /usr/bin/sb\_mboxtrain \[OPTIONS\] ...

### Where OPTIONS is one or more of:

**-h**

-

  show usage and exit

**-d** DBNAME

- use the DBM store.

  A DBM file is larger than the pickle and

-

  creating it is slower, but loading it is much faster, especially for large word databases.  Recommended for use with sb\_filter or any procmail-based filter.

**-p** DBNAME

- use the pickle store.

  A pickle is smaller and faster to create,

- but much slower to load.

  Recommended for use with sb\_server and

-

  sb\_xmlrpcserver.

**-g** PATH

-

  mbox or directory of known good messages (non-spam) to train on. Can be specified more than once.

**-s** PATH

-

  mbox or directory of known spam messages to train on. Can be specified more than once.

**-f**

- force training, ignoring the trained header.

  Use this if you

-

  need to rebuild your database from scratch.

**-q**

-

  quiet mode; no output

- **-n**

  train mail residing in "new" directory, in addition to "cur" directory, which is always trained (Maildir only)

- **-r**

  remove mail which was trained on (Maildir only)

**-o** section:option:value

-

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

## SEE ALSO

The full documentation for **option** is maintained as a Texinfo manual.  If the **info** and **option** programs are properly installed at your site, the command

-

  **info option**

should give you access to the complete manual.
