NAME

spamtrak-dbop - Database operations for the Spamtrak spam tracking system.


SYNOPSIS

spamtrak-dbop [-q] dump [filename]

spamtrak-dbop [-q] load [filename]

spamtrak-dbop [-q] age


DESCRIPTION

The spamtrak-dbop program implements administrative operations on the Spamtrak database.

The following operations are provided:

dump
The database contents are dumped to a flat file. If a filename is specified, the output is written to there. Otherwise, the output is written to stdout.

load
A new database is loaded from a flat file. If a filename is specified, the input is read from there. Otherwise, the input is read from stdin.

If you attempt to load a database that already exists, spamtrak-dbop will abort with an error.

age
The database scores are aged.

This operation should be run daily. (If never run, the score values will be exactly same as the count values.)

spamtak-dbop calculates how long it has been since aging has last been performed, and adjusts the scores accordingly. If aging has already been performed today, the program will exit without doing any aging.

Normally, spamtrak-dbop produces diagnostic messages indicating the work it intends to do and the result. The -q options (quiet mode) suppresses those messages.


BUGS

The age operation produces a new database, and saves a copy of the old database with a .old suffix.

The database is locked, and thus mail delivery is inhibited, during until the age operation completes. Even with a significant database, this should take more than a few seconds.


SEE ALSO

 spamtrak(1), spamtrak-mssg(1), spamtrak-query(1)


AUTHOR

 Chip Rosenthal
 Unicom Systems Development
 <chip@unicom.com>
 $Id: spamtrak-dbop.pl,v 1.1 2002/07/27 00:29:59 chip Exp $