From 4effc0640c5a8d40b347c446b6b4c2ac4e936bb2 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 14 Jun 2016 20:36:33 +0100 Subject: [PATCH] [Feature] Simplify machines by assuming that headers are unfolded --- src/ragel/smtp_whitespace.rl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ragel/smtp_whitespace.rl b/src/ragel/smtp_whitespace.rl index 5bac17a4e..635d47c92 100644 --- a/src/ragel/smtp_whitespace.rl +++ b/src/ragel/smtp_whitespace.rl @@ -23,7 +23,8 @@ Atom = atext+; Dot_string = Atom ("." Atom)*; dot_atom_text = atext+ ("." atext+)*; - FWS = ((WSP* CRLF)? WSP+); + #FWS = ((WSP* CRLF)? WSP+); + FWS = WSP+; # We work with unfolded headers, so we can simplify machine comment = "(" (FWS? ctext)* FWS? ")"; CFWS = ((FWS? comment)+ FWS?) | FWS; -- 2.39.5