CHUNKING/DKIM: fix handling of lines having a leading dot
[exim.git] / src / src / exigrep.src
index 419fcb54ccf711121d46fea1afd985b6f4c979f8..bb994d7697f35ead2e493a354677eba7aeb24c37 100644 (file)
@@ -2,7 +2,7 @@
 
 use strict;
 
-# Copyright (c) 2007-2014 University of Cambridge.
+# Copyright (c) 2007-2015 University of Cambridge.
 # See the file NOTICE for conditions of use and distribution.
 
 # Except when they appear in comments, the following placeholders in this
@@ -224,7 +224,7 @@ if (@ARGV)
   foreach (@ARGV)
     {
     my $filename = $_;
-    if ($filename =~ /\.(?:COMPRESS_SUFFIX)$/o)
+    if (-x 'ZCAT_COMMAND' && $filename =~ /\.(?:COMPRESS_SUFFIX)$/o)
       {
       open(LOG, "ZCAT_COMMAND $filename |") ||
         die "Unable to zcat $filename: $!\n";