aboutsummaryrefslogtreecommitdiffstats
path: root/src/ragel/smtp_address.rl
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-25 09:40:00 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-25 09:40:00 +0100
commitdc5966e5907dc159452ebe86b4ac6d656f7c806d (patch)
treef2dbfa1ad0d40c376af5726ff67de8e8bbfbae49 /src/ragel/smtp_address.rl
parent41219c6320a4c9744e5a051070fc78c1dd6403dd (diff)
downloadrspamd-dc5966e5907dc159452ebe86b4ac6d656f7c806d.tar.gz
rspamd-dc5966e5907dc159452ebe86b4ac6d656f7c806d.zip
[Fix] Fix SMTP address parsing machine
Diffstat (limited to 'src/ragel/smtp_address.rl')
-rw-r--r--src/ragel/smtp_address.rl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ragel/smtp_address.rl b/src/ragel/smtp_address.rl
index c0333acd9..3c2a86ee6 100644
--- a/src/ragel/smtp_address.rl
+++ b/src/ragel/smtp_address.rl
@@ -25,8 +25,8 @@
Dot_string = Atom ("." Atom)*;
QcontentSMTP = qtextSMTP | quoted_pairSMTP;
- Quoted_string = ( DQUOTE QcontentSMTP* DQUOTE ) %Quoted_addr;
- Local_part = ( Dot_string | Quoted_string ) >User_start %User_end;
+ Quoted_string = ( DQUOTE QcontentSMTP* >User_start %User_end DQUOTE ) %Quoted_addr;
+ Local_part = Dot_string >User_start %User_end | Quoted_string;
String = Atom | Quoted_string;
Standardized_tag = Ldh_str;
@@ -43,8 +43,8 @@
Mailbox = Local_part "@" (address_literal | Domain >Domain_start %Domain_end);
UnangledPath = ( Adl ":" )? Mailbox;
- AngledPath = "<" UnangledPath ">";
- Path = AngledPath %Angled_addr | UnangledPath;
+ AngledPath = "<" UnangledPath >Angled_addr_start %Angled_addr_end ">";
+ Path = AngledPath | UnangledPath >Unangled_addr_start %Unangled_addr_end;
SMTPAddr = space* (Path | "<>" %Empty_addr ) %Valid_addr space*;
}%%