diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-03 12:13:10 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-03 12:13:10 +0000 |
commit | 5936aed13e97ac84e44e38a00dcfde16ec9fd173 (patch) | |
tree | 29c319fc298117e56aeaf97ed1780dc4cadbe5e5 /src/libserver/cfg_file.h | |
parent | a752628025143687ee60f6f1cf94ad483023d1db (diff) | |
download | rspamd-5936aed13e97ac84e44e38a00dcfde16ec9fd173.tar.gz rspamd-5936aed13e97ac84e44e38a00dcfde16ec9fd173.zip |
Add ability to ignore certain symbols in metric when validating cache
Diffstat (limited to 'src/libserver/cfg_file.h')
-rw-r--r-- | src/libserver/cfg_file.h | 5 |
1 files changed, 4 insertions, 1 deletions
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; }; |