git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build: use pkg-config for i18n
[exim.git]
/
src
/
src
/
eximstats.src
diff --git
a/src/src/eximstats.src
b/src/src/eximstats.src
index 99f4c195f6cf094320eb2e10b9b599c676102465..232b3d13533b6d2549aca3daa121afbd4abdacc6 100644
(file)
--- a/
src/src/eximstats.src
+++ b/
src/src/eximstats.src
@@
-1,7
+1,9
@@
#!PERL_COMMAND
#!PERL_COMMAND
+# Copyright (c) The Exim Maintainers 2023
# Copyright (c) 2001-2017 University of Cambridge.
# See the file NOTICE for conditions of use and distribution.
# Copyright (c) 2001-2017 University of Cambridge.
# See the file NOTICE for conditions of use and distribution.
+# SPDX-License-Identifier: GPL-2.0-or-later
# Perl script to generate statistics from one or more Exim log files.
# Perl script to generate statistics from one or more Exim log files.
@@
-533,7
+535,7
@@
about how to create charts from the tables.
=head1 AUTHOR
=head1 AUTHOR
-There is a web
site at http
://www.exim.org - this contains details of the
+There is a web
site at https
://www.exim.org - this contains details of the
mailing list exim-users@exim.org.
=head1 TO DO
mailing list exim-users@exim.org.
=head1 TO DO
@@
-557,10
+559,10
@@
use File::Basename;
# use Time::Local; # PH/FANF
use POSIX;
# use Time::Local; # PH/FANF
use POSIX;
-if (
$ARGV[0] eq '--version'
) {
+if (
@ARGV and ($ARGV[0] eq '--version' || $ARGV[0] eq '-v')
) {
print basename($0) . ": $0\n",
"build: EXIM_RELEASE_VERSIONEXIM_VARIANT_VERSION\n",
print basename($0) . ": $0\n",
"build: EXIM_RELEASE_VERSIONEXIM_VARIANT_VERSION\n",
- "perl(runtime): $
^V
\n";
+ "perl(runtime): $
]
\n";
exit 0;
}
exit 0;
}
@@
-1898,7
+1900,11
@@
sub generate_parser {
next if ($length < 38 + $extra);
}
next if ($length < 38 + $extra);
}
- $id = substr($_, 20 + $extra, 16);
+ # $id = substr($_, 20 + $extra, 16); # old ID was 16 chars
+ $id = substr($_, 20 + $extra, 23); # new IS is 23 chars
+ $id =~ s/(\S+).*/$1/;
+ $extra += length($id) - 16;
+
$flag = substr($_, 37 + $extra, 2);
if ($flag !~ /^([<>=*-]+|SA)$/ && /rejected|refused|dropped/) {
$flag = substr($_, 37 + $extra, 2);
if ($flag !~ /^([<>=*-]+|SA)$/ && /rejected|refused|dropped/) {