Quoting Steve Litt (sl...@troubleshooters.com):

> Please keep in mind that replies to a troll aren't what most people are
> here to see. Keep in mind also that when trolls are ignored, they tend
> to go elsewhere.

Useful procmail recipe follows, for catching and processing posts from a
roster of trolls and any first-level response to them, except if said mail
has To: or Cc: addressed to you specifically:


# noise filter
MY_ADDR="my.own@email.addresses|separa...@by.bars"
TROLL_ADDR="this.is@a.troll|with@two.addresses|this.is@another.troll"
TROLL_NAMES="John Troll|Kathy McTroll"

:0
# for each email not directly addressed to me
*$ !^(To|Cc):.*\<($MY_ADDR)\>
{
    :0
    # if the mail is from a troll -> byte recycler
    *$ ^From:.*\<($TROLL_ADDR)\>
    /dev/null

    :0 B
    # if the mail is a direct reply to a troll -> same
    *$ ^^(.*\<)?($TROLL_NAMES)\>
    /dev/null
}


(To put matched mail somewhere else, substitute a different destination 
in place of the above's bit bucket.)

Plaudits for this elegant solution should go to Tobia Conforto 
<tobia.confo...@linux.it>, who provided it to the subscribers of OSI's
license-discuss mailing list on 3 September 2007.
_______________________________________________
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Reply via email to