From c2eae89f49dcc5a90aa0d29e70303b767dcc1a31 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 20 May 2017 12:18:38 +0100 Subject: [PATCH] [Fix] Treat empty address as valid --- src/ragel/smtp_addr_parser.rl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ragel/smtp_addr_parser.rl b/src/ragel/smtp_addr_parser.rl index 501ee82f4..91b100af7 100644 --- a/src/ragel/smtp_addr_parser.rl +++ b/src/ragel/smtp_addr_parser.rl @@ -47,7 +47,7 @@ } action Empty_addr { - addr->flags |= RSPAMD_EMAIL_ADDR_EMPTY; + addr->flags |= RSPAMD_EMAIL_ADDR_EMPTY|RSPAMD_EMAIL_ADDR_VALID; addr->addr = ""; addr->user = addr->addr; addr->domain = addr->addr; -- 2.39.5