Discussion:
Does pigeonhole regex extension support PCRE?
Lev Serebryakov
2014-09-13 12:08:05 UTC
Permalink
I've tried to use negative look-ahead in :regex match like this:

if header :regex "List-Id" "<svn-([^-]+)-(?!all)([^.]+)\.freebsd\.org>"
{ ... }

and manage-sieve server complains on save about such regex with
diagnostic "repetition operator operand invalid" :(

- --
Black Lion AKA Lev Serebryakov
Stephan Bosch
2014-09-13 13:11:47 UTC
Permalink
Post by Lev Serebryakov
if header :regex "List-Id" "<svn-([^-]+)-(?!all)([^.]+)\.freebsd\.org>"
{ ... }
and manage-sieve server complains on save about such regex with
diagnostic "repetition operator operand invalid" :(
https://tools.ietf.org/html/draft-murchison-sieve-regex-08#section-3

Regards,

Stephan.

Loading...