From: Vsevolod Stakhov Date: Tue, 28 Feb 2017 13:21:40 +0000 (+0000) Subject: [Minor] Treat bad SMTP from as broken header X-Git-Tag: 1.5.0~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=484b1c46d1d65b624859fb4604a57fac58e3560d;p=rspamd.git [Minor] Treat bad SMTP from as broken header --- 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); }