1. Knowledge Base
  2. MDaemon® Email Server

How to determine the number messages the Bayesian Filter has learned from

The following command can be used to determine how many messages have been processed and studied by the Bayesian filter in MDaemon's MDSpamD.

Open a command line from the start menu in Windows (type 'cmd' followed by enter).

Navigate to the disk that MDaemon is installed on.

Change the directory to the SpamAssassin directory under MDaemon (ex: cd c:\MDaemon\spamassassin).

Type the following, followed by enter: sa-learn -C ./rules --siteconfigpath=./default_rules --dump magic

You should see a table in response like this:

C:\MDaemon\SpamAssassin> sa-learn -C ./rules --siteconfigpath=./default_rules --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.