From 9815773952dd56fe4d33291ace6d0ee7afd77852 Mon Sep 17 00:00:00 2001 From: Todd Lyons Date: Wed, 4 Sep 2013 13:12:54 -0700 Subject: Make sender/recipient search case-insensitive --- src/src/exiqgrep.src | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/src/exiqgrep.src b/src/src/exiqgrep.src index 75265a2bb..e05589073 100644 --- a/src/src/exiqgrep.src +++ b/src/src/exiqgrep.src @@ -15,7 +15,7 @@ # Routine for extracting the UTC timestamp from message ID # lifted from eximstat utility -# Version 1.1 +# Version 1.2 use strict; use Getopt::Std; @@ -115,13 +115,13 @@ sub selection() { 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); } -- cgit v1.2.3