X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Fexiqgrep.src;h=c8762df479da01279db8d73d9a4a1ad3a57ecd93;hb=e4e884faa7f5a04d937282113681d97a355ed2af;hp=c26da684bfae3f136c9414930df73e6ec68a615b;hpb=983da87847289c7f5373e4d5933d379f211b7613;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/exiqgrep.src b/src/src/exiqgrep.src index c26da684b..c8762df47 100644 --- a/src/src/exiqgrep.src +++ b/src/src/exiqgrep.src @@ -49,15 +49,16 @@ if ($^O eq 'darwin') { # aka MacOS X if ($ARGV[0] eq '--version') { print basename($0) . ": $0\n", "build: EXIM_RELEASE_VERSIONEXIM_VARIANT_VERSION\n", - "perl(runtime): $^V\n"; + "perl(runtime): $]\n"; exit 0; } -getopts('hf:r:y:o:s:C:zxlibRca',\%opt); +getopts('hf:r:y:o:s:C:zxlibRcaG:',\%opt); if ($ARGV[0]) { &help; exit;} if ($opt{h}) { &help; exit;} if ($opt{a}) { $eargs = '-bp'; } if ($opt{C} && -e $opt{C} && -f $opt{C} && -R $opt{C}) { $eargs .= ' -C '.$opt{C}; } +if ($opt{G}) { $eargs .= ' -qG'.$opt{G}; } # Read message queue output into hash &collect(); @@ -83,6 +84,7 @@ Selection criteria: -o Message older than -z Frozen messages only (exclude non-frozen) -x Non-frozen messages only (exclude frozen) + -G Match in given queue only [ NB: for regexps, provided string sits in // ]