How do I create an email filter with complex logic?

Solution 1:

Still hoping for a better solution, but here's a compromise that seems to work (mostly, the occasional mail with the group in the CC or BCC field still slips through)...

  1. Set the Yahoo group to send individual messages, not the "digest".
  2. Optionally, create a triage folder, _Yahoo group, triage.
  3. Create 4 filters, as follows:

    Filter, "Yahoo group 1, Ignore bad users":

    1. Set to Match any...
    2. Set filter conditions to From, is, [email protected], etc.
    3. Set actions to Mark As Read, then Move Message to Trash.

    Filter, "Yahoo group 2, Keep good posts":

    1. Set to Match any...
    2. Set the first filter condition to To, isn't, [email protected]
    3. Set filter conditions of From, is, [email protected], etc.
    4. Set filter conditions of Body, contains, keyWord_1, etc.
    5. Important! The action should just be Stop Filter Execution.

    Filter, "Yahoo group 3, Kill Re:":

    1. Set to Match any...
    2. Set filter condition 1 to Subject, begins with, Re:.
    3. Set filter condition 2 to Subject, begins with, [GroupName] Re:.
    4. Set actions to Mark As Read, then Move Message to Trash.

    Optional Filter, "Yahoo group 4, Move unknown posts to triage folder":

    1. Set to Match any...
    2. Set filter condition 1 to To or Cc, contains, [email protected].
    3. Set filter condition 2 to Bcc, contains, [email protected].
      If you do not know how to set the Bcc filter, don't worry about it, for now.
    4. Set actions to Mark As Read, then Move Message to _Yahoo group, triage (The optional folder, you set up for this purpose).

  4. Because one of the filters stops the filtering process, it is very important that these four filters be placed, in order, at the bottom of the Message Filters list (so that they run last) -- because the second filter will prevent any but the Yahoo group filters from running after it.

    Obviously, if any previous filters might fire a Stop Filter Execution, on a Yahoo Group email, then this whole approach will fail.