aboutsummaryrefslogtreecommitdiffstats
path: root/src/ragel
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-14 20:36:33 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-14 20:36:33 +0100
commit4effc0640c5a8d40b347c446b6b4c2ac4e936bb2 (patch)
treed0cfc07f9729f5772ba5a171fb563356fb62617c /src/ragel
parentef7c969e2073b27e67084ee8885cf858ee9ddb58 (diff)
downloadrspamd-4effc0640c5a8d40b347c446b6b4c2ac4e936bb2.tar.gz
rspamd-4effc0640c5a8d40b347c446b6b4c2ac4e936bb2.zip
[Feature] Simplify machines by assuming that headers are unfolded
Diffstat (limited to 'src/ragel')
-rw-r--r--src/ragel/smtp_whitespace.rl3
1 files changed, 2 insertions, 1 deletions
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;