aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-03 18:14:29 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-08-03 18:14:29 +0100
commitda57529be06ceb91fada005a3458a3be604ef271 (patch)
tree3a617fd7edd3b7044c2fad0f424627d0fadff8e8 /src
parent92e1b614db2bba173c3352455c3454249d357c9d (diff)
downloadrspamd-da57529be06ceb91fada005a3458a3be604ef271.tar.gz
rspamd-da57529be06ceb91fada005a3458a3be604ef271.zip
[Minor] Set protocol flags in self-scan mode
Diffstat (limited to 'src')
-rw-r--r--src/rspamd_proxy.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/rspamd_proxy.c b/src/rspamd_proxy.c
index 70e393ddd..086dfd2c1 100644
--- a/src/rspamd_proxy.c
+++ b/src/rspamd_proxy.c
@@ -1728,6 +1728,12 @@ rspamd_proxy_self_scan (struct rspamd_proxy_session *session)
session->pool, session->ctx->lang_det,
session->ctx->event_loop);
task->flags |= RSPAMD_TASK_FLAG_MIME;
+
+ if (session->ctx->milter) {
+ task->protocol_flags |= RSPAMD_TASK_PROTOCOL_FLAG_MILTER|
+ RSPAMD_TASK_PROTOCOL_FLAG_BODY_BLOCK;
+ }
+
task->sock = -1;
if (session->client_milter_conn) {