The example is pretty accurate for what I'm trying to do. In your recipe
here what happens if there is another left or right bracket in the
mix? Wouldn't that throw things off a bit?
Thanks,
-Chris
At 10:51 PM 3/10/2004 +0100, Ruud H.G. van Tol wrote:
Toen ik Christopher Benson kietelde, kwam er dit uit:
> the text I need to remove is: [TEX1]
> "TPS20001-34987 [TEX1] How do I change my config?"
It depends. How real is the example?
WS = " " # "<space><tab>"
H_Subj Lft Rgt # unset some variables
:0
* ^Subject:\/.*\[TEX1].*
{
H_Subj = $MATCH
:0 # all text before the first [
* H_Subj ?? ^^\/[^[]*
{ Lft = $MATCH }
:0 # all text after the first ]
* H_Subj ?? \]\/.*
{ Rgt = $MATCH }
:0
{ H_Subj = "$Lft$Rgt" }
}
--
Affijn, Ruud
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail