procmail
[Top] [All Lists]

Re: long mailing-list names in Subject line

2001-03-28 22:11:44

So, if a Subject line appears as:

  Re: [scfn-list] quick question

I want it to appear as:

  Re: quick question

I think I've got this one.... $MATCH is the key

:0fhw
* ^Subject: \[scfn-list\] \/.*
| formail -I"Subject: $MATCH"

I'm not sure that you need to escape the [ and ] but I'm pretty sure 
you do.  You might even need to escape the - but I don't think so.

I guess you could combine this with a delivery recipe too... just add 
this immediately following the above recipe

:0a:
scfn-list

Tim



_______________________________________________
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>