diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-25 14:37:42 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-25 14:37:42 +0000 |
commit | 9836fe5686a3e439655753930d2e4fb7decd3309 (patch) | |
tree | 0d904cf1c3e0d40ddb839cb80503ec804f953ec8 /src/lua/lua_task.c | |
parent | c06d8386eb902edb577df32b4f1e600dd9d65f7c (diff) | |
download | rspamd-9836fe5686a3e439655753930d2e4fb7decd3309.tar.gz rspamd-9836fe5686a3e439655753930d2e4fb7decd3309.zip |
[Feature] Stat greylisted messages as greylisted not soft-rejected
Diffstat (limited to 'src/lua/lua_task.c')
-rw-r--r-- | src/lua/lua_task.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c index 43b6b281e..d8df34e1e 100644 --- a/src/lua/lua_task.c +++ b/src/lua/lua_task.c @@ -3239,6 +3239,7 @@ lua_task_set_flag (lua_State *L) LUA_TASK_SET_FLAG (flag, "learn_ham", RSPAMD_TASK_FLAG_LEARN_HAM, set); LUA_TASK_SET_FLAG (flag, "broken_headers", RSPAMD_TASK_FLAG_BROKEN_HEADERS, set); + LUA_TASK_SET_FLAG (flag, "gerylisted", RSPAMD_TASK_FLAG_GREYLISTED, set); if (!found) { msg_warn_task ("unknown flag requested: %s", flag); @@ -3266,6 +3267,7 @@ lua_task_has_flag (lua_State *L) LUA_TASK_GET_FLAG (flag, "extended_urls", RSPAMD_TASK_FLAG_EXT_URLS); LUA_TASK_GET_FLAG (flag, "learn_spam", RSPAMD_TASK_FLAG_LEARN_SPAM); LUA_TASK_GET_FLAG (flag, "learn_ham", RSPAMD_TASK_FLAG_LEARN_HAM); + LUA_TASK_GET_FLAG (flag, "greylisted", RSPAMD_TASK_FLAG_GREYLISTED); LUA_TASK_GET_FLAG (flag, "broken_headers", RSPAMD_TASK_FLAG_BROKEN_HEADERS); @@ -3330,6 +3332,10 @@ lua_task_get_flags (lua_State *L) lua_pushstring (L, "learn_ham"); lua_rawseti (L, -2, idx++); break; + case RSPAMD_TASK_FLAG_GREYLISTED: + lua_pushstring (L, "greylisted"); + lua_rawseti (L, -2, idx++); + break; default: break; } |