mail_tempaddress_purge.pl - purge Mail::SimpleList::Alias object when they expire
mail_tempaddress_purge.pl directory [min_age] [-v]
mail_simplelist_purge.pl applies the
Purge role from Mail::Action::Role::Purge to a Mail::SimpleList::Aliases collection. This role allows the purging of expired Mail::SimpleList::Alias objects. This program is intended to be run on a regular basis from cron or a similar facility.
When run the number of aliases present in the address directory before the purge and the number of aliases purged will be listed to the terminal.
The only required argument is the directory in which the aliases are stored. This is the same as the argument to the Mail::TempAddress constructor. For safety it is recommended that this be a absolute directory path.
A minimum time that each address has been expired for may be passed as an optional argument. The time may be in seconds or a freeform expression such as "1h30m" or "2m1w".
--verbose is passed then the aliases present will be listed to the terminal both before and after the purge.
James FitzGibbon, <jfitz@CPAN.ORG>
Copyright (c) 2003, James FitzGibbon. This program is free software; you may use/modify it under the same terms as Perl itself.