Use formail -I"Subject:"
:0 f
* whatever contition(s) you may need
| formail -I"Subject: new subj"
:0f
* ^From:.*Perl.*
* ^Subject:.*Internediate.*
| formail -I"Subject: Intermediate Perl"
:0
^From:.*Pyton.*
* ^Subject:.*Internediate.*
| formail -I"Subject: Intermediate Python"
All of these suggestions do away with the rest of the original Subject: line,
which may or may not be desirable. I would think that someone would rather not
get all messages to a group simply say 'Intermediate Python'
Also, last I knew, trailing ".*" were not necessary (and some would same should
not be used).
Personally, I'd do something like this myself (change the Sender line to
something uniquely identifyable for each list)
This assumes that procmail Subject: lines came with [Intermediate] in its
Subject: line
:0
* ^Sender: procmail-admin(_at_)lists\(_dot_)RWTH-Aachen\(_dot_)DE
{
# Catch the current Subject: line but remove the word '[Intermediate]'
SUBJECT=`formail -xSubject: | sed 's/\[Intermediate\] //`
# put in a new subject using the remainder of the old Subject and a new
# [bracketed label]
:0fhw
|formail -I"Subject: [Intermediate Procmail] $SUBJECT"
}
HTH
TjL
(ps - actually I'd sort them into different mailboxes and delete the [ ]
altogether, but that's just me ;-)
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail