[TAG] Ya know, I've changed my mind.

Benjamin A. Okopnik ben at linuxgazette.net
Mon Nov 7 07:21:42 MSK 2005


On Sun, Nov 06, 2005 at 03:32:25PM -0700, Jason Creighton wrote:
> On Wed, Nov 02, 2005 at 10:34:29AM -0700, Benjamin A. Okopnik wrote:
> > On Wed, Nov 02, 2005 at 04:30:29PM +0000, Thomas Adam wrote:
> > > [TAG:  I apologise in perpetuating this, but I'm fascinated by the
> > > insight Bruce might have]
> > 
> > In my case, I'm over being even mildly interested in his brand of
> > cluelessness - he's sent me _more_ mail, the lad just can't bear not
> > having the last word - so I've killfiled him.
> 
> I've never maintained a killfile, so I'm always been a bit curious about
> the methods used. You just added a procmail rule to /dev/null his
> emails, right? Or do you have some more complex setup?

In my .procmailrc:
---------------------------------------------------
# Test if the email's sender is blacklisted
:0
* ? formail -x"From" -x"From:" -x"Sender:" \
    -x"Reply-To:" -x"Return-Path:" -x"Received:" \
    | fgrep -qisf ~/Mail/black.lst
/dev/null
---------------------------------------------------

In my .muttrc:
---------------------------------------------------
macro index \cb "|perl -wlne'if(/^From: (.*)/){/<([^>]+)/;print $1}'>>~/Mail/black.lst
"
macro pager \cb "|perl -wlne'if(/^From: (.*)/){/<([^>]+)/;print $1}'>>~/Mail/black.lst
"
---------------------------------------------------

Anytime I decide to uninvite someone from my inbox, I just hit "Ctrl-b";
the Perl script parses out the 'From:' address and adds it to my
blacklist. From there, the procmail recipe does its magic, and I never
see anything from that address again.


* Ben Okopnik * Editor-in-Chief, Linux Gazette * http://linuxgazette.net *





More information about the TAG mailing list