aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/task.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-18 09:32:21 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-18 09:32:21 +0100
commitcb2284917bc94c5033ed12f3789bdf8611cec6de (patch)
treee32d27fc4e3b4e2c28243c42ece12f667e1ea34e /src/libserver/task.h
parentdce9dda76266bc2627e9cb5fe6b5ac46a28d2cd2 (diff)
downloadrspamd-cb2284917bc94c5033ed12f3789bdf8611cec6de.tar.gz
rspamd-cb2284917bc94c5033ed12f3789bdf8611cec6de.zip
[Fix] Distinguish empty and non-empty prefilters
Diffstat (limited to 'src/libserver/task.h')
-rw-r--r--src/libserver/task.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/libserver/task.h b/src/libserver/task.h
index 28e0dc070..573f6d9b7 100644
--- a/src/libserver/task.h
+++ b/src/libserver/task.h
@@ -42,21 +42,22 @@ enum rspamd_task_stage {
RSPAMD_TASK_STAGE_CONNECT = (1u << 0u),
RSPAMD_TASK_STAGE_ENVELOPE = (1u << 1u),
RSPAMD_TASK_STAGE_READ_MESSAGE = (1u << 2u),
- RSPAMD_TASK_STAGE_PRE_FILTERS = (1u << 3u),
+ RSPAMD_TASK_STAGE_PRE_FILTERS_EMPTY = (1u << 3u),
RSPAMD_TASK_STAGE_PROCESS_MESSAGE = (1u << 4u),
- RSPAMD_TASK_STAGE_FILTERS = (1u << 5u),
- RSPAMD_TASK_STAGE_CLASSIFIERS_PRE = (1u << 6u),
- RSPAMD_TASK_STAGE_CLASSIFIERS = (1u << 7u),
- RSPAMD_TASK_STAGE_CLASSIFIERS_POST = (1u << 8u),
- RSPAMD_TASK_STAGE_COMPOSITES = (1u << 9u),
- RSPAMD_TASK_STAGE_POST_FILTERS = (1u << 10u),
- RSPAMD_TASK_STAGE_LEARN_PRE = (1u << 11u),
- RSPAMD_TASK_STAGE_LEARN = (1u << 12u),
- RSPAMD_TASK_STAGE_LEARN_POST = (1u << 13u),
- RSPAMD_TASK_STAGE_COMPOSITES_POST = (1u << 14u),
- RSPAMD_TASK_STAGE_IDEMPOTENT = (1u << 15u),
- RSPAMD_TASK_STAGE_DONE = (1u << 16u),
- RSPAMD_TASK_STAGE_REPLIED = (1u << 17u)
+ RSPAMD_TASK_STAGE_PRE_FILTERS = (1u << 5u),
+ RSPAMD_TASK_STAGE_FILTERS = (1u << 6u),
+ RSPAMD_TASK_STAGE_CLASSIFIERS_PRE = (1u << 7u),
+ RSPAMD_TASK_STAGE_CLASSIFIERS = (1u << 8u),
+ RSPAMD_TASK_STAGE_CLASSIFIERS_POST = (1u << 9u),
+ RSPAMD_TASK_STAGE_COMPOSITES = (1u << 10u),
+ RSPAMD_TASK_STAGE_POST_FILTERS = (1u << 11u),
+ RSPAMD_TASK_STAGE_LEARN_PRE = (1u << 12u),
+ RSPAMD_TASK_STAGE_LEARN = (1u << 13u),
+ RSPAMD_TASK_STAGE_LEARN_POST = (1u << 14u),
+ RSPAMD_TASK_STAGE_COMPOSITES_POST = (1u << 15u),
+ RSPAMD_TASK_STAGE_IDEMPOTENT = (1u << 16u),
+ RSPAMD_TASK_STAGE_DONE = (1u << 17u),
+ RSPAMD_TASK_STAGE_REPLIED = (1u << 18u)
};
#define RSPAMD_TASK_PROCESS_ALL (RSPAMD_TASK_STAGE_CONNECT | \