13 Mar
2024
13 Mar
'24
5:28 p.m.
Hello!
I need to match all messages sent from some specific domain and all its sub-domains. I can achieve this with:
if address :match :domain "From" [ "domain.com", "*.domain.com" ] { ... }
But it looks ugly, especially if repeated for 5-6 domains.
Is here way better? :match ["*domain.com"]
will match "notdomain.com" and `:is [ "domain.com" ] doesn't match sub-domains.
I understand, that it is (slightly?) off-topic, but I can not find any sieve-specific resources (all google find ins questions about PronotMail and FastMail filters, and these questions are very basic).
Thank you.
-- // Black Lion AKA Lev Serebryakov