aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-20 12:18:38 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-20 12:18:38 +0100
commit5e77b3c83891e37820a705b3f62d386de210725d (patch)
treef3da86558e5ccb7ed757b6ea62ba811b7fc4cc29
parent86fc1e855b8e8b2850b3fb74d705802ac29dc085 (diff)
downloadrspamd-5e77b3c83891e37820a705b3f62d386de210725d.tar.gz
rspamd-5e77b3c83891e37820a705b3f62d386de210725d.zip
[Fix] Treat empty address as valid
-rw-r--r--src/ragel/smtp_addr_parser.rl2
1 files changed, 1 insertions, 1 deletions
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;