20.02.21, 15:44 +0100, ml@shadrinden.ru:
I have a sieve that is supposed to put all messages addressed to this mailing list into a separate folder:
if anyof (address :is "to" "ml@shadrinden.ru", address :is "to" "dovecot@dovecot.org") { fileinto "mail_list"; stop; }
Generally, it's working, but today I have got two mailing list messages that weren't put in that folder, they arrived straight into INBOX. I suppose that was because they were replies and were addressed to the person who asked the questions, so they had his address in "To:", and only in "Cc:" they had dovecot@dovecot.org.
So, am I right that, when filtering messages by the addressee, it's generally a good idea to use not just "to", but ["to", "cc', "bcc"] ?
I consider it a better idea to filter mailing list messages by their List-ID header.
-- Regards mks