.vlist
.vitem &*-f*&&~<&'regex'&>
-Match the sender address. The field that is tested is enclosed in angle
-brackets, so you can test for bounce messages with
+Match the sender address using a case-insensitive search. The field that is
+tested is enclosed in angle brackets, so you can test for bounce messages with
.code
exiqgrep -f '^<>$'
.endd
.vitem &*-r*&&~<&'regex'&>
-Match a recipient address. The field that is tested is not enclosed in angle
-brackets.
+Match a recipient address using a case-insensitve search. The field that is
+tested is not enclosed in angle brackets.
.vitem &*-s*&&~<&'regex'&>
Match against the size field.
TL/07 Fix an out of order global option causing a segfault. Reported to dev
mailing list by by Dmitry Isaikin.
+TL/08 Adjust exiqgrep to be case-insensitive for sender/receiver.
+
JH/01 Bugzilla 1201 & 304 - New cutthrough-delivery feature, with TLS support.
JH/02 Support "G" suffix to numbers in ${if comparisons.
# Routine for extracting the UTC timestamp from message ID
# lifted from eximstat utility
-# Version 1.1
+# Version 1.2
use strict;
use Getopt::Std;
foreach my $msg (keys(%id)) {
if ($opt{f}) {
# Match sender address
- next unless ($id{$msg}{from} =~ /$opt{f}/);
+ next unless ($id{$msg}{from} =~ /$opt{f}/i);
}
if ($opt{r}) {
# Match any recipient address
my $match = 0;
foreach my $rcpt (@{$id{$msg}{rcpt}}) {
- $match++ if ($rcpt =~ /$opt{r}/);
+ $match++ if ($rcpt =~ /$opt{r}/i);
}
next unless ($match);
}