aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-22 16:28:52 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-22 16:28:52 +0100
commit04a539f1333f7dfc3b1d6799b16956b576cad3cb (patch)
treeb9215f2fe8c1fc5874be4922980764538d08d66f /src/libmime
parentca1b4f4d477fbc52df8ac5e399949611e8351a8d (diff)
downloadrspamd-04a539f1333f7dfc3b1d6799b16956b576cad3cb.tar.gz
rspamd-04a539f1333f7dfc3b1d6799b16956b576cad3cb.zip
[Feature] Add a concept of ignored symbols to avoid race conditions
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/filter.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libmime/filter.h b/src/libmime/filter.h
index 798e5305f..8d90ef87a 100644
--- a/src/libmime/filter.h
+++ b/src/libmime/filter.h
@@ -19,6 +19,11 @@ struct rspamd_symbol_option {
struct rspamd_symbol_option *prev, *next;
};
+enum rspamd_symbol_result_flags {
+ RSPAMD_SYMBOL_RESULT_NORMAL = 0,
+ RSPAMD_SYMBOL_RESULT_IGNORED = (1 << 0)
+};
+
/**
* Rspamd symbol
*/
@@ -29,6 +34,7 @@ struct rspamd_symbol_result {
const gchar *name;
struct rspamd_symbol *sym; /**< symbol configuration */
guint nshots;
+ enum rspamd_symbol_result_flags flags;
};
/**