diff options
Diffstat (limited to 'src/libserver/protocol.c')
-rw-r--r-- | src/libserver/protocol.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c index 654f16113..65d0900df 100644 --- a/src/libserver/protocol.c +++ b/src/libserver/protocol.c @@ -499,6 +499,10 @@ rspamd_protocol_handle_headers (struct rspamd_task *task, case 'f': case 'F': IF_HEADER (FROM_HEADER) { + if (hv_tok->len == 0) { + /* Replace '' with '<>' to fix parsing issue */ + RSPAMD_FTOK_ASSIGN(hv_tok, "<>"); + } task->from_envelope = rspamd_email_address_from_smtp ( hv_tok->begin, hv_tok->len); |