procmail
[Top] [All Lists]

Altering Subject Headers - solution

1999-12-21 20:46:26

In a previous post I mentioned...

So, to change a subject of "[LCP] some text I don't know" to "some
text I don't know", I'd use the following?

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

Is that right?

Basically, it isn't right. :-(  I forgot to escape the SHELLMETA "[".
So a recipe that works properly would be...

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



-- 
---Regards, Steve Youngs------------------------------------------
| On the box it said "Requires Windows 95, Windows NT or better" |
|                     So I installed Linux...                    |
-----------------Email:-<youngs_s(_at_)ozlinx(_dot_)com(_dot_)au>--ICQ:-34307457---

<Prev in Thread] Current Thread [Next in Thread>
  • Altering Subject Headers - solution, Steve Youngs <=