I’d start by using the address test for headers that contain email addresses, and in your case specify the :domain address part.
On Wed, Jan 11, 2023, at 5:51 PM, [email protected] wrote: > I have a sieve filter... and it sometimes doesn't seem to work. I can't > figure out why. Here's an example: >> if anyof( >> allof( >> header :contains ["To", "Cc"] "[email protected] >> <mailto:[email protected]>", >> anyof( >> header :contains "From" [ >> "emails.xfinity.com", >> "t-mobile.com", >> "farmers.com" >> ], >> allof( >> header :contains "From" "msmc.com", >> header :contains "Subject" "new statement" >> ) >> ) >> ), >> # some special cases here that don't go to XXX, doesn't >> # matter for this >> allof( >> ... >> ), >> allof( >> ... >> ) >> ) >> { >> fileinto "bills-parents"; >> stop; >> } > > And here's headers from an email that didn't seem to catch this rule: >> From: "Farmers Insurance" <[email protected]> >> To: <[email protected] <mailto:[email protected]>> >> Subject: Your Farmers Insurance bill is ready to be viewed >> Date: Wed, 11 Jan 2023 16:18:57 -0600 > > Farmers.com NEVER triggers this rule, but T-Mobile (and other domains in that > 'from' list) always do. Here's an email that DOES trigger it: > >> From: "T-Mobile USA" <[email protected]> >> To: [email protected] <mailto:[email protected]> >> Subject: Your T-Mobile bill is ready to view >> Date: Wed, 11 Jan 2023 17:08:59 -0500 > > I've looked for various testing/debugging tools that you could feed a message > and a rule into, but most of the ones I find referenced are no longer online. > Any help would be greatly appreciated. Thanks! > *Cyrus <https://cyrus.topicbox.com/latest>* / Info / see discussions > <https://cyrus.topicbox.com/groups/info> + participants > <https://cyrus.topicbox.com/groups/info/members> + delivery options > <https://cyrus.topicbox.com/groups/info/subscription> Permalink > <https://cyrus.topicbox.com/groups/info/T2f012b160cebf95e-Mbef2f2f70782f24cc3ade290> -- Kenneth Murchison Senior Software Developer Fastmail US LLC [email protected] ------------------------------------------ Cyrus: Info Permalink: https://cyrus.topicbox.com/groups/info/T2f012b160cebf95e-Md73f3c097a58f1c55f71b8ea Delivery options: https://cyrus.topicbox.com/groups/info/subscription
