Ticket #190 (closed enhancement: fixed)
Add command-line options to the Perl scripts
|Reported by:||rjl||Owned by:||rjl|
|Component:||Perl scripts||Version:||1.0.0 RC5|
|Severity:||minor||Keywords:||process-quarantine.pl expire-quarantine-cache.pl command-line|
Some of the configurable behaviour of the various Perl scripts (e.g. process-quarantine.pl, expire-quarantine-cache.pl, etc.) is hard-coded at the beginnings of the scripts themselves, or read from database columns. For maximum utility however, it would be convenient to also let some of these things be set via command-line options.
If set on the command-line, such options would override any hard-coded defaults or database-sourced values, so for routine purposes (e.g. cron jobs) the scripts would be best run without any arguments, but for one-off administration purposes--like, say, purging X days worth of confirmed-but-unreported spam--command-line arguments would be highly convenient.
The expire-quarantine-cache.pl script, in particular, might be amended to allow the administrator to specify the types of mail items that should be expired--suspected ham/spam, confirmed ham/spam, viruses, banned files, bad header items, etc. (Currently, confirmed ham/spam items are not expired by this script at all--only process-quarantine.pl does this.)