aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_file.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-03 12:13:10 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-03 12:13:10 +0000
commit5936aed13e97ac84e44e38a00dcfde16ec9fd173 (patch)
tree29c319fc298117e56aeaf97ed1780dc4cadbe5e5 /src/libserver/cfg_file.h
parenta752628025143687ee60f6f1cf94ad483023d1db (diff)
downloadrspamd-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.h5
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;
};