This should work:
:0fh
* ^Subject:[ ]*\[SPAM:[0-9]*\][ ]*\/[^ ].*
| formail -I"Subject: $MATCH"
If I understand the OP correctly, though, he has to deal with [SPAM:##]
or [SPAM:####], with one to five literal "#" signs instead of numbers.
:0fh
* ^Subject:[ ]*\[SPAM:#+][ ]*\/[^ ].*
| formail -I"Subject: $MATCH"
Yes, this worked, thanks.
actually,
:0fh
* ^Subject: \[SPAM:#+\] \/.*
| /usr/local/bin/formail -I"Subject: $MATCH"
was sufficient. puremessage always just uses spaces.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail