procmail
[Top] [All Lists]

Re: Removing [somelist] from subject lines

2001-01-20 12:08:54
On Sat, 20 Jan 2001, Mike A. Harris wrote:

I looked at the procmail faq's thinking this *must* be an faq,
however I didn't find anything.  I'm on a few lists that
idiotically insist on adding [listname] to the beginning of every
message, and I want to have procmail auto-remove this crap.

Here is what I use.  It is the very first recipe in my list.rc file.

# Too many twits on too many lists adding crap to the Subject that
# makes threading not work quite right.  This is from Eli the Bearded

      :0fh
      *  ^Subject: *((Re: ?)*Re[[^]|Re: *Re:)
      | perl -pe 's/^subject:\s*(re[][^\d]*:\s*)+/Subject: Re: /i;'

-- 
I've had a perfectly wonderful evening.  But this wasn't it.
                -- Groucho Marx

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail