aboutsummaryrefslogtreecommitdiffstats
path: root/src/ragel
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-21 13:24:52 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-21 13:24:52 +0000
commit5f62643beef8244e765181008b37fece116ebde1 (patch)
tree41833c8b5308b59be5eafd8150228897818d6aca /src/ragel
parent99963a5250604a03d009ec2c2edf14d3355d55e7 (diff)
downloadrspamd-5f62643beef8244e765181008b37fece116ebde1.tar.gz
rspamd-5f62643beef8244e765181008b37fece116ebde1.zip
[Fix] Fix parsing of dot at the end of the address
Issue: #1543
Diffstat (limited to 'src/ragel')
-rw-r--r--src/ragel/smtp_address.rl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ragel/smtp_address.rl b/src/ragel/smtp_address.rl
index fc69a0138..736c28b0e 100644
--- a/src/ragel/smtp_address.rl
+++ b/src/ragel/smtp_address.rl
@@ -25,7 +25,7 @@
Adl = Atdomain ( "," Atdomain )*;
Mailbox = Local_part "@" (address_literal | Domain >Domain_start %Domain_end);
- UnangledPath = ( Adl ":" )? Mailbox >Addr_start %Addr_end;
+ UnangledPath = ( Adl ":" )? Mailbox >Addr_start %Addr_end "."?;
AngledPath = "<" UnangledPath ">" %Addr_has_angle;
Path = AngledPath | UnangledPath;
SMTPAddr = space* (Path | "<>" %Empty_addr ) %Valid_addr space*;