commit 8ec6d2d: [Minor] Idempotent != postfilter, wtf
Vsevolod Stakhov
vsevolod at rspamd.com
Sun May 1 12:07:04 UTC 2022
Author: Vsevolod Stakhov
Date: 2022-05-01 12:42:41 +0100
URL: https://github.com/rspamd/rspamd/commit/8ec6d2d60b3c4671aa95a681ea28d65aeb33b665
[Minor] Idempotent != postfilter, wtf
---
src/lua/lua_config.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c
index 8f7854347..4a238d45e 100644
--- a/src/lua/lua_config.c
+++ b/src/lua/lua_config.c
@@ -1835,6 +1835,7 @@ lua_parse_symbol_type (const gchar *str)
for (i = 0; i < l; i ++) {
str = vec[i];
+ /* TODO: total shit, rework some day */
if (g_ascii_strcasecmp (str, "virtual") == 0) {
ret |= SYMBOL_TYPE_VIRTUAL;
ret &= ~SYMBOL_TYPE_NORMAL;
@@ -1861,7 +1862,7 @@ lua_parse_symbol_type (const gchar *str)
ret |= SYMBOL_TYPE_CONNFILTER | SYMBOL_TYPE_GHOST;
}
else if (g_ascii_strcasecmp (str, "idempotent") == 0) {
- ret |= SYMBOL_TYPE_POSTFILTER | SYMBOL_TYPE_GHOST |
+ ret |= SYMBOL_TYPE_GHOST |
SYMBOL_TYPE_IDEMPOTENT | SYMBOL_TYPE_CALLBACK;
}
else {
More information about the Commits
mailing list