[Mailman-Developers] Regexp filtering

Stephen J. Turnbull stephen at xemacs.org
Mon Feb 29 14:37:16 EST 2016


Barry Warsaw writes:

 > IBan would need to have a flag which indicate whether the `email`
 > is a literal address or a pattern.  I don't think it's worth having
 > two separate interfaces/models, but we might want to rename `email`
 > to something more generic (`pattern` would be fine, with the
 > understanding that is_regexp=False means the pattern is a literal).

Are regexps sufficiently slow that *always* using a regexp would hurt
performance?[1]  The model I really had in mind was to always use
regexps, and have a flag in the UI (Postorius) to regexp-quote when
the user wants a literal.

Or we could continue to have the core representation be "leading '^'
iff regexp", and once again have Postorius prepend "^.*" or whatever.


Footnotes: 
[1]  XEmacs actually checks whether a regexp contains any regexp
operators and automatically switches to a very fast literal search if
not.




More information about the Mailman-Developers mailing list