Google

G. Pape
qconfirm

Name

qconfirm-cdb-check - match a mail address against a constant database

Synopsis

qconfirm-cdb-check [-v] [-d] [-c cdb] [-t sec]

Description

Normally qconfirm-cdb-check is run by qconfirm-check(1) before requesting a delivery confirmation for mail from an envelope sender mail address. If qconfirm-cdb-check exits 0, qconfirm-check(1) doesn't request a delivery confirmation from this sender.

qconfirm-cdb-check assumes the environment variable SENDER to be set to the envelope sender mail address. It creates an id based on $SENDER, and matches the id against entries in the constant database ~/.qconfirm/ok.cdb. ok.cdb normally is created and maintained by qconfirm-cdb-update(1).

If qconfirm-cdb-check successfully matches $SENDER, it reads the timestamp of the id that matches $SENDER in ok.cdb, updates the timestamp if it is older than sec seconds, and exits 0.

Options

-c cdb
The filename of the constant database to be checked. Default is ``ok.cdb'' (in the qconfirm directory). Note: If qconfirm-cdb-check updates cdb, it creates cdb.tmp as temporary file. If cdb.tmp exists, it will be destroyed.
-t sec
Set the interval for updating timestamps of ids in cdb to sec seconds. Default is 2419200 (four weeks).
-d
domain match. Use extended envelope sender addresses matching for domains and subdomains.
-v
verbose. Print verbose messages to stdout.

Environment

SENDER
qconfirm-cdb-check assumes the environment variable SENDER to be set to the envelope sender mail address. If $SENDER is not set, qconfirm-cdb-check complains and exits 100.
QCONFIRM_DIR
The environment variable QCONFIRM_DIR overrides the default location of the user's qconfirm directory (``.qconfirm'').

See Also

qconfirm-cdb-update(1), qconfirm(1), qconfirm-check(1), qconfirm-conf(1), qconfirm-accept(1), qconfirm-return(1), qconfirm-control(1)

http://smarden.org/qconfirm/

Author

Gerrit Pape <pape@smarden.org>


Table of Contents