procmail
[Top] [All Lists]

Re: Removing [somelist] from subject lines

2001-01-20 10:14:05
"Mike A. Harris" stated the following:

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.

I'd prefer it if someone could point me to some faq page or other
resource out there as this almost has to be talked to death.

Also, this topic is a breeding ground for flamewar/religious wars
about what goes in the subject line and what shouldn't.  I'm not
interested at all in that debate as it does not end in a solution
that pleases everyone, however procmail allows each person to
choose their solution - which is what I'm looking for.  Please
don't be "that guy" that starts the thread, ok?  ;o)

Sorry to post this, but I spent 2 hours hunting and found no
adequate solution.

The following shows two types:

    :0
    * H ?? ^Subject:\/.*Re:.*Re:.*
    { MATCH=`echo ${MATCH} | ${MSED} 's/[Rr][Ee]:\(
\)\?\(.*\)\?[Rr][Ee]: /Re: /'` }
            :0 fhwa
            | ${FORMAIL} -I "Subject: ${MATCH}"

    :0 fbw
    | ${MSED} '/Subject: [Rr][Ee]:\( \)\?\(.*\)\?[Rr][Ee]:
/{s/[Rr][Ee]:\( \)\?\(.*\)\?[Rr][Ee]: /Re: /;}'

Note: When you reply to this message, please include the mailing
      list/newsgroup address in Cc: and my email address in To:.

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