Moderately advanced Gmail killfile rules
This is for those times you are following a list that has a fairly limited troll infestion, and you want to get rid of all messages by the troll, and all replies to him (it’s usually a him).
The “trick” is to put all of the following in the “Has the words”-field in the Gmail filter, so that you can have ORs between different types of matches. (Neater than making several rules for the same person.)
First off, a simple example, where we drop all mail from a certain adress, and also all mail to the list mentioning the trolls name or adress, to also catch any replies directed to the troll. I have found this to be adequate for my problems:
from:a@b.net OR (("Joe Random Troll" OR a@b.net) AND list:"fanac.lists.lysator.liu.se")
This assumes the list adds Mailman style List-Id headers to the messages. Otherwise just use the To field.
Here is another example, in which the troll uses a couple of different adresses to post to the list, and is also on a couple of different lists that you want to read:
from:(a@b.net OR a@h.com) OR (("Joe Random Troll" OR a@b.net OR a@h.com) AND list:("fanac.lists.lysator.liu.se" OR "sverifandom.lists.lysator.liu.se"))