]> git.netwichtig.de Git - user/henk/code/exim.git/blobdiff - src/src/eximstats.src
Fix json extract for strings carrying commas. Bug 3006
[user/henk/code/exim.git] / src / src / eximstats.src
index 8eb5cac896ec91e7f3895d2365bfe7fc973563df..3b89e6bd7d4767146677ba26709c4882f8bd188d 100644 (file)
@@ -533,7 +533,7 @@ about how to create charts from the tables.
 
 =head1 AUTHOR
 
-There is a web site at http://www.exim.org - this contains details of the
+There is a website at https://www.exim.org - this contains details of the
 mailing list exim-users@exim.org.
 
 =head1 TO DO
@@ -1898,7 +1898,11 @@ sub generate_parser {
       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/) {