diff options
author | Todd Lyons <tlyons@exim.org> | 2013-09-04 13:12:54 -0700 |
---|---|---|
committer | Todd Lyons <tlyons@exim.org> | 2013-09-04 13:12:54 -0700 |
commit | 9815773952dd56fe4d33291ace6d0ee7afd77852 (patch) | |
tree | d2c181f63ea13e4366f65d091e58d6413210733c /src | |
parent | 42bfef1e908fe60f8a7a86e66616b51702f1c0fb (diff) |
Make sender/recipient search case-insensitive
Diffstat (limited to 'src')
-rw-r--r-- | src/src/exiqgrep.src | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |