7.1.1 Operation Modifiers

--compact

Compact database (see compaction). By default, ‘cache’ database is compacted. To specify another database, use ‘--format’ option (see –format). Full database name can be given in the command line (see ‘--file’ option below), if it differs from the one specified in the script file.

Use with the option ‘--all’ (see –all) to compact all databases.

This option implies ‘--stderr’ (see –stderr).

--daemon

Run in daemon mode (default).

--delete

Delete given entries from the database (see deleting from databases). By default, ‘cache’ database is assumed. To specify another database, use ‘--format’ option (see –format).

This option implies ‘--stderr’ (see –stderr).

--expire

Delete all expired entries from the database (see section Database Maintenance). By default, ‘cache’ database is assumed. To specify another database, use ‘--format’ option (see –format). Full database name can be given in the command line (see ‘--file’ option below), if it differs from the one specified in the script file.

Use with the option ‘--all’ (see –all) to expire all databases.

This option implies ‘--stderr’ (see –stderr).

-f filename
--file=filename

Set the name of the database to operate upon (for ‘--compact’, ‘--delete’, ‘--expire’, and ‘--list’ options). Useful if, for some reason, you need to operate on a database whose file name does not match the one mailfromd is configured to use.

--list

List the database. By default, ‘cache’ database is assumed. To list another database, use ‘--format’ option (see –format).

This option implies ‘--stderr’ (see –stderr).

See section Basic Database Operations.

--run[=start]

Load the script named in the command line and execute the function named start, or ‘main’, if start is not given. See section Run Mode, for a detailed description of this feature.

--show-defaults

Show compilation defaults. See section Databases.

-t[state]
--test[=state]

Run in test mode. See section Testing Filter Scripts. Default state is ‘envfrom’. This option implies ‘--stderr’ (see –stderr).