procmail
[Top] [All Lists]

Re: editing headers

2003-09-18 16:27:42
Sean wrote:
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"

/HW

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

<Prev in Thread] Current Thread [Next in Thread>