From: Vsevolod Stakhov Date: Sat, 20 May 2017 11:18:38 +0000 (+0100) Subject: [Fix] Treat empty address as valid X-Git-Tag: 1.5.8~17 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c2eae89f49dcc5a90aa0d29e70303b767dcc1a31;p=rspamd.git [Fix] Treat empty address as valid --- 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;