From 5936aed13e97ac84e44e38a00dcfde16ec9fd173 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 3 Dec 2015 12:13:10 +0000 Subject: Add ability to ignore certain symbols in metric when validating cache --- src/libserver/cfg_file.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/libserver/cfg_file.h') diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h index 6263705ac..05946a79e 100644 --- a/src/libserver/cfg_file.h +++ b/src/libserver/cfg_file.h @@ -89,6 +89,9 @@ struct rspamd_symbols_group { gboolean one_shot; }; +#define RSPAMD_SYMBOL_FLAG_ONESHOT (1 << 0) +#define RSPAMD_SYMBOL_FLAG_IGNORE (1 << 1) + /** * Symbol definition */ @@ -99,7 +102,7 @@ struct rspamd_symbol_def { gdouble score; struct rspamd_symbols_group *gr; GList *groups; - gboolean one_shot; + guint flags; }; -- cgit v1.2.3