]> source.dussan.org Git - rspamd.git/commitdiff
[Feature] Simplify machines by assuming that headers are unfolded
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 14 Jun 2016 19:36:33 +0000 (20:36 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 14 Jun 2016 19:36:33 +0000 (20:36 +0100)
src/ragel/smtp_whitespace.rl

index 5bac17a4ec334d9e0100bfabe17b55ea7a85ac2f..635d47c9257b6ac59f0f194b6a1bc605f3d25d50 100644 (file)
@@ -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;