From: Vsevolod Stakhov Date: Wed, 21 Jul 2021 14:46:38 +0000 (+0100) Subject: [Minor] Skip spaces in malformed SMTP addresses X-Git-Tag: 3.0~118 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=df806bccd476072784c855a2c995f0e63b535427;p=rspamd.git [Minor] Skip spaces in malformed SMTP addresses Issue: #3812 --- diff --git a/src/ragel/smtp_address.rl b/src/ragel/smtp_address.rl index 68226f748..9fe9f35eb 100644 --- a/src/ragel/smtp_address.rl +++ b/src/ragel/smtp_address.rl @@ -30,7 +30,7 @@ Local_part = Dot_string >User_start %User_end | Quoted_string; Mailbox = Local_part "@" (address_literal | Domain >Domain_start %Domain_end); UnangledPath = ( Adl ":" )? Mailbox >Addr_start %Addr_end "."?; - AngledPath = "<" UnangledPath ">" %Addr_has_angle; + AngledPath = "<" FWS? UnangledPath FWS? ">" %Addr_has_angle; Path = AngledPath | UnangledPath; SMTPAddr = space* (Path | "<>" %Empty_addr ) %Valid_addr space*; }%%