X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Fexiqgrep.src;h=c8762df479da01279db8d73d9a4a1ad3a57ecd93;hb=c85879f8174a658ddac9524d078b2a717f964710;hp=c4f7c4b58aac30f11964b775b9429c6e7e5aea62;hpb=3af849e2045f7c580d4c533d829dc9d567162d36;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/exiqgrep.src b/src/src/exiqgrep.src index c4f7c4b58..c8762df47 100644 --- a/src/src/exiqgrep.src +++ b/src/src/exiqgrep.src @@ -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 // ]