X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fsrc%2Ftransport-filter.src;h=db00d877f8154cb43cf2524bf461e17eae86704f;hb=2aaa3cdd22a987cbf7c8343d3e6103ee521296dc;hp=3a82c763959527886d47cdab312eb6840c8e3adb;hpb=059ec3d9952740285fb1ebf47961b8aca2eb1b4a;p=exim.git diff --git a/src/src/transport-filter.src b/src/src/transport-filter.src index 3a82c7639..db00d877f 100644 --- a/src/src/transport-filter.src +++ b/src/src/transport-filter.src @@ -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,16 @@ # Philip Hazel, May 1997 ############################################################################# +use warnings; +BEGIN { pop @INC if $INC[-1] eq '.' }; +use File::Basename; + +if ($ARGV[0] eq '--version') { + print basename($0) . ": $0\n", + "build: EXIM_RELEASE_VERSIONEXIM_VARIANT_VERSION\n", + "perl(runtime): $]\n"; + exit 0; +} # If the filter is called with any arguments, insert them into the message # as X-Arg headers, just to verify what they are.