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 regex are really not as bad as some
make them out to be.
In general, I think regular expressions are fine, but less readable than
simple statements (I'm well versed in regex).
The one thing that made me fall in love with sieve is the fact that the
syntax is so wonderfully clear and self-documenting, almost readable as
normal language. I never need to add comments to a sieve script
explaining to my future self what a specific rule tries to achieve.
And given the amount of work that a sieve script does, I don't think
that optimization is something you should strive for, when you have to
trade it for readability and clarity.
Just my preference :)
Kind regards,
Tom
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org