diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-28 13:21:40 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-28 13:21:40 +0000 |
commit | 484b1c46d1d65b624859fb4604a57fac58e3560d (patch) | |
tree | 0c4364158f9edd51d208dadb6cbec840dd14f911 /src/libserver/protocol.c | |
parent | 10e5fd4ebd63218d23a4bbb52e4706e38caaff2a (diff) | |
download | rspamd-484b1c46d1d65b624859fb4604a57fac58e3560d.tar.gz rspamd-484b1c46d1d65b624859fb4604a57fac58e3560d.zip |
[Minor] Treat bad SMTP from as broken header
Diffstat (limited to 'src/libserver/protocol.c')
-rw-r--r-- | src/libserver/protocol.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |