Skip to content

Instantly share code, notes, and snippets.

@lluuaapp
Created April 23, 2018 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lluuaapp/a939d33abe0a773175dd1bd1e1fd672e to your computer and use it in GitHub Desktop.
Save lluuaapp/a939d33abe0a773175dd1bd1e1fd672e to your computer and use it in GitHub Desktop.
diff --git a/src/src/eximstats.src b/src/src/eximstats.src
old mode 100644
new mode 100755
index 8eb5cac8..05aca77f
--- a/src/src/eximstats.src
+++ b/src/src/eximstats.src
@@ -2376,9 +2376,9 @@ sub generate_parser {
++$rejected_count_by_ip{$ip};
}
elsif (
- /(temporarily rejected [A-Z]*) .*?(: .*?)(:|\s*$)/
+ /(temporarily rejected ?(|after|during) [A-Z].*)(: .*?)(:|\s*$)/
) {
- ++$temporarily_rejected_count_by_reason{"\u$1$2"};
+ ++$temporarily_rejected_count_by_reason{"\u$1$3"};
++$temporarily_rejected_count_by_ip{$ip};
}
elsif (
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment