X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/d5c0d8c9374623620844d539d4810da63e9abca1..107077d7fd6736711bf5cd980221723401d37c51:/src/src/transport-filter.src diff --git a/src/src/transport-filter.src b/src/src/transport-filter.src index 3f250e657..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 @@ -13,6 +18,14 @@ use warnings; BEGIN { pop @INC if $INC[-1] eq '.' }; +use File::Basename; + +if ($ARGV[0] eq '--version' || $ARGV[0] eq '-v') { + 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.