From 484b1c46d1d65b624859fb4604a57fac58e3560d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 28 Feb 2017 13:21:40 +0000 Subject: [PATCH] [Minor] Treat bad SMTP from as broken header --- src/libserver/protocol.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c index a3f7f9167..3a03c3b50 100644 --- a/src/libserver/protocol.c +++ b/src/libserver/protocol.c @@ -327,6 +327,7 @@ rspamd_protocol_handle_headers (struct rspamd_task *task, hv->len); if (!task->from_envelope) { msg_err_task ("bad from header: '%V'", hv); + task->flags |= RSPAMD_TASK_FLAG_BROKEN_HEADERS; } } else { @@ -373,6 +374,7 @@ rspamd_protocol_handle_headers (struct rspamd_task *task, } else { msg_err_task ("bad from header: '%T'", h->value); + task->flags |= RSPAMD_TASK_FLAG_BROKEN_HEADERS; } debug_task ("read rcpt header, value: %V", hv); } -- 2.39.5