diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2016-12-07 18:32:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-07 18:32:07 +0300 |
commit | bbd555dd9cfdcb9a3a02fe6129f81ed990558de7 (patch) | |
tree | 3c8274c73e5b2e5d53799bacf6b7c494093af98a /utils | |
parent | fb1e7c4be20e30275b2dbd38e1bf2990d393fb38 (diff) | |
download | rspamd-bbd555dd9cfdcb9a3a02fe6129f81ed990558de7.tar.gz rspamd-bbd555dd9cfdcb9a3a02fe6129f81ed990558de7.zip |
[Minor] rspamd_stats: fix parsing when options are logged
There are symbols with _comma_ separated options like `DMARC_POLICY_SOFTFAIL(0.10){yandex.ru : SPF not aligned (relaxed), DKIM not aligned (relaxed);}`
Diffstat (limited to 'utils')
-rw-r--r-- | utils/rspamd_stats.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/rspamd_stats.pl b/utils/rspamd_stats.pl index f360de8af..1e8e7a158 100644 --- a/utils/rspamd_stats.pl +++ b/utils/rspamd_stats.pl @@ -215,7 +215,7 @@ sub ProcessLog { } # Symbols - my @symbols = split /,/, $3; + my @symbols = split /(?:\{[^}]*\})?,/, $3; my @sym_names; foreach my $s (@symbols_search) { |