diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-25 15:27:22 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-25 15:27:22 +0000 |
commit | 8eacee21da2b2a78759fc03d90f609c1136d1835 (patch) | |
tree | 5a8632cefc102ee0861f414d5c1f722f94ef0033 /utils/received_parser_bench.c | |
parent | 45a5a84c71b49fed9fc1419e86a0b9cd0631df7c (diff) | |
download | rspamd-8eacee21da2b2a78759fc03d90f609c1136d1835.tar.gz rspamd-8eacee21da2b2a78759fc03d90f609c1136d1835.zip |
[Fix] Relax requirements for Received as gmail cannot RFC
Diffstat (limited to 'utils/received_parser_bench.c')
-rw-r--r-- | utils/received_parser_bench.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/utils/received_parser_bench.c b/utils/received_parser_bench.c index cb304b631..41a637422 100644 --- a/utils/received_parser_bench.c +++ b/utils/received_parser_bench.c @@ -26,6 +26,7 @@ static gint total_real_ip = 0; static gint total_real_host = 0; static gint total_known_proto = 0; static gint total_known_ts = 0; +static gint total_known_for = 0; static void rspamd_process_file (const gchar *fname) @@ -82,6 +83,10 @@ rspamd_process_file (const gchar *fname) if (rh.timestamp != 0) { total_known_ts ++; } + + if (rh.for_mbox) { + total_known_for ++; + } } if (err) { @@ -111,11 +116,13 @@ main (int argc, char **argv) "Total real ip: %d\n" "Total real host: %d\n" "Total known proto: %d\n" - "Total known timestamp: %d\n", + "Total known timestamp: %d\n" + "Total known for: %d\n", total_parsed, total_time, total_valid, total_real_ip, total_real_host, total_known_proto, - total_known_ts); + total_known_ts, + total_known_for); return 0; } |