416

Determining how many messages the Bayesian Filter has learned from

The command in this article can be used to determine how many messages have been processed and studied by the Bayesian filter in MDaemon.

  1. Open a command prompt from the start menu on the machine where MDaemon is installed.
  2. Navigate to the disk that MDaemon is installed on.
  3. Change the directory to the SpamAssassin directory under MDaemon (ex: cd c:\MDaemon\spamassassin).
  4. Type the following, followed by enter: sa-learn -C ./rules -D --dump magic

    You should see a table in response like this:

C:\MDaemon\SpamAssassin> sa-learn -C ./rules -D --dump magic

0.000          0          2          0  non-token data: bayes db version
0.000          0          3          0  non-token data: nspam
0.000          0         35          0  non-token data: nham
0.000          0       1403          0  non-token data: ntokens
0.000          0 1102728654          0  non-token data: oldest atime
0.000          0 1106169895          0  non-token data: newest atime
0.000          0          0          0  non-token data: last journal sync atime
0.000          0          0          0  non-token data: last expiry atime
0.000          0          0          0  non-token data: last expire atime delta
0.000          0          0          0  non-token data: last expire reduction count

The numbers you are interested are the nspam and nham values.

In this example, SpamAssassin has learned from 3 spam messages and 35 ham (non-spam) messages.