Fix sieve QP regression from Coverity cleanups
[exim.git] / src / src / transport-filter.src
index 3a82c763959527886d47cdab312eb6840c8e3adb..3f250e6578aa1a40a30a3e6990761bee87976930 100644 (file)
@@ -1,5 +1,4 @@
-#! PERL_COMMAND -w
-# $Cambridge: exim/src/src/transport-filter.src,v 1.1 2004/10/07 10:39:01 ph10 Exp $
+#! PERL_COMMAND
 
 # This is a Perl script to demonstrate the possibilities of on-the-fly
 # delivery filtering in Exim. It is presented with a message on its standard
@@ -12,6 +11,8 @@
 # Philip Hazel, May 1997
 #############################################################################
 
+use warnings;
+BEGIN { pop @INC if $INC[-1] eq '.' };
 
 # If the filter is called with any arguments, insert them into the message
 # as X-Arg headers, just to verify what they are.