X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/983da87847289c7f5373e4d5933d379f211b7613..cf1376206284f2a4f11e32d931d4aade34c206c5:/src/src/transport-filter.src diff --git a/src/src/transport-filter.src b/src/src/transport-filter.src index 256bf7c39..1343f89d4 100644 --- a/src/src/transport-filter.src +++ b/src/src/transport-filter.src @@ -1,5 +1,10 @@ #! PERL_COMMAND +# Copyright (c) The Exim Maintainers 2023 +# See the file NOTICE for conditions of use and distribution. +# SPDX-License-Identifier: GPL-2.0-or-later + + # 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 # input, and must copy it to the standard output, transforming it as it @@ -15,10 +20,10 @@ use warnings; BEGIN { pop @INC if $INC[-1] eq '.' }; use File::Basename; -if ($ARGV[0] eq '--version') { +if ($ARGV[0] eq '--version' || $ARGV[0] eq '-v') { print basename($0) . ": $0\n", "build: EXIM_RELEASE_VERSIONEXIM_VARIANT_VERSION\n", - "perl(runtime): $^V\n"; + "perl(runtime): $]\n"; exit 0; }