Roundcube Community Forum

Third Party Contributions => API Based Plugins => Topic started by: cbrace on April 14, 2013, 05:45:52 PM

Title: managesieve: "matches" operator
Post by: cbrace on April 14, 2013, 05:45:52 PM
Hi all,

I have a question about the "matches" operator. How does it differ from "is", "contains", and "regex"? I don't see  "matches" listed on the project page at Github:
Quote'contains' : contains
'notcontains' : does not contain
'is' : is equal to
'notis' : is not equal to
'exists' : exists
'notexists' : does not exist
'regex' : matches regular expression
'notregex' : does not match regular expression
https://github.com/JohnDoh/RoundCube-Plugin-SieveRules-Managesieve (https://github.com/JohnDoh/RoundCube-Plugin-SieveRules-Managesieve)

I'm running v5.1 of the plugin under RC v.0.8.6

Thanks
Title: Re: managesieve: "matches" operator
Post by: alec on April 15, 2013, 01:30:15 AM
http://www.ietf.org/rfc/rfc3028.txt
Title: Re: managesieve: "matches" operator
Post by: cbrace on April 15, 2013, 03:30:39 AM
Thanks!
QuoteThe ":matches" version specifies a wildcard match using the
   characters "*" and "?".  "*" matches zero or more characters, and "?"
   matches a single character.