X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fsrc%2Fexiqgrep.src;h=bd95ae83642a0ed4d9a8c3af905a5feba1f8580d;hb=f8a9072f30574d6f467685a008458b409ade30d0;hp=c4f7c4b58aac30f11964b775b9429c6e7e5aea62;hpb=02721dcdf5dfcf96f62f6c657c9989b9ef991fa7;p=exim.git diff --git a/src/src/exiqgrep.src b/src/src/exiqgrep.src index c4f7c4b58..bd95ae836 100644 --- a/src/src/exiqgrep.src +++ b/src/src/exiqgrep.src @@ -24,7 +24,7 @@ use Getopt::Std; use File::Basename; # Have this variable point to your exim binary. -my $exim = 'BIN_DIRECTORY/exim'; +my $exim = 'BIN_DIRECTORY/exim4'; my $eargs = '-bpu'; my %id; my %opt; @@ -53,11 +53,12 @@ if ($ARGV[0] eq '--version') { 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 // ]