On Wed, 28 Aug 2002, James C. McMaster (Jim) wrote:
I am sure this has been discussed before, but I looked in the archives (can't
figure out narrow enough search) and on the various FAQ/Tips pages and can't
find an answer...
Several misguided mailing lists add a "[identifier] " token to their Subject:
headers to make their lists "easy" to use. One list I am on just added a
very long id, which is annoying enough I want to get rid of it with procmail.
To make it worse, it is not always immediately after Subject. For replies,
it can look like:
Subject: Re: [identifier] Stuff I would like to keep
Bart's solution is good for general identifiers.
If your problem is one list that you have just add...:
:0 hfw
* ^Subject:.*[VeryLongIdentifier]
|sed 's/^\(Subject:.*\)\[VeryLongIdentifier\]/\1[ShotId]/'
Information like "Re:" will be kept.
Bye,
Udi
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail