Re: Question about sieve language

2024-03-15 Thread Tom Hendrikx via dovecot
On 14-03-2024 12:51, Ralph Seichter via dovecot wrote: * Tom Hendrikx via dovecot: Or in readable sieve: [...] Do you mean to imply that regular expressions are not readable? ;-) All it takes is a little practice. Besides, regex are more efficient. It is well worth learning about them, and

Re: Question about sieve language

2024-03-14 Thread Ralph Seichter via dovecot
* Tom Hendrikx via dovecot: > Or in readable sieve: [...] Do you mean to imply that regular expressions are not readable? ;-) All it takes is a little practice. Besides, regex are more efficient. It is well worth learning about them, and regex are really not as bad as some make them out to be. -

Re: Question about sieve language

2024-03-13 Thread Tom Hendrikx via dovecot
On 13-03-2024 17:36, Ralph Seichter via dovecot wrote: * Lev Serebryakov: I need to match all messages sent from some specific domain and all its sub-domains. I prefer using regular expressions for this kind of tests: if address :regex "From" "[@.]example\.(com|org)$" {...} This will

Re: Question about sieve language

2024-03-13 Thread Ralph Seichter via dovecot
* Lev Serebryakov: > I need to match all messages sent from some specific domain and all > its sub-domains. I prefer using regular expressions for this kind of tests: if address :regex "From" "[@.]example\.(com|org)$" {...} This will match all addresses for example.com, example.org and their