Jeremy Howard wrote:
> 
> Ken Murchison wrote:
> > "John C. Amodeo" wrote:
> <...>
> > > And, are wildcards supported yet?
> >
> > In regex, yes.  The extension follows the POSIX spec with the exception
> > of disallowing backreferences (no variables currently allowed in
> > Sieve).  If you're really interested, have a look at the draft:
> >
> > http://www.imc.org/draft-murchison-sieve-regex
> >
> Also note that you don't need to use regex to support wild-cards. Just use
> the ':matches' comparator, which is part of the Sieve RFC, IIRC.
> 
> BTW Ken, what are the performance implications of using regex instead of
> :matches?

I haven't done any comparisons myself, but I would almost guarantee that
it is slower than :matches.  I wouldn't use :regex for everything, I'd
only use it when :matches doesn't serve your needs.

For most users, who probably don't know a regex from their elbow, I
would imagine that the simple glob-style wildcards of :matches are
sufficient.  I'd consider :regex a 'power-user' feature.  However,
unlike procmail, even if a user creates a bogus or mangled :regex,
Sieve's implicit keep will prevent the mail from vaporizing.

Ken
-- 
Kenneth Murchison     Oceana Matrix Ltd.
Software Engineer     21 Princeton Place
716-662-8973 x26      Orchard Park, NY 14127
--PGP Public Key--    http://www.oceana.com/~ken/ksm.pgp

Reply via email to