use FileHandle;
use File::Basename;
use File::stat;
-use Getopt::Std;
+use Getopt::Std; $Getopt::Std::STANDARD_HELP_VERSION = 1;
use Log::Dispatch;
use Log::Dispatch::File;
use POSIX qw(strftime WEXITSTATUS WIFEXITED);
+our $VERSION = 1;
+
# If a filter set's header is $MAGIC_TO_TOKEN, that set is compared
# against headers matching this regex (taken from procmail).
my $MAGIC_TO_REGEX = '^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope |Apparently(-Resent)?)-To)';
Dump (using Data::Dumper) the FILTERS list and exit. This is useful
for testing the syntax of .mincfilter.
-=item B<-h>
+=item B<--help>
Show help.
my $printfilenames = 0;
our $opt_d;
-our $opt_h;
our $opt_n;
our $opt_p;
-if (not getopts('dhnp')) {
+if (not getopts('dnp')) {
exit(2);
}
if ($opt_d) {
$dumpfilters = 1;
-} elsif ($opt_h) {
- print("Sorry bub, no help.\n");
- exit;
} elsif ($opt_n) {
$run = 0;
}