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
* 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.
-
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
* 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