no_fold_literal = "[" dtext* "]";
id_right = dot_atom_text | no_fold_literal;
msg_id = "<" id_left "@" id_right ">";
- ID = CFWS "ID"i FWS ( Atom | msg_id );
+ ID = CFWS "ID"i FWS ( Dot_string | msg_id );
For = CFWS "FOR"i FWS ( Path | Mailbox ) >For_Start %For_End;
Additional_Registered_Clauses = CFWS Atom FWS String;
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)
if (rh.timestamp != 0) {
total_known_ts ++;
}
+
+ if (rh.for_mbox) {
+ total_known_for ++;
+ }
}
if (err) {
"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;
}