Re: index_format filtering?
* Cameron Simpson <cs@xxxxxxxxxx> [01-18-04 02:37]:
> Digging through an old thread...
>
> On 06:55 09 Mar 2003, Patrick Shanahan <pat@xxxxxxxxxxxxxxx> wrote:
> | * Cameron Simpson <cs@xxxxxxxxxx> [03-08-03 23:58]:
> | > I do this in my procmailrc with this rule:
> | > # tidy up Re: and [tag] in Subject:
> | > :0 Whf
> | > * ^subject:.*(\[|re)
> | > | cleansubj
> | > where cleansubj is this script:
> | > http://www.cskk.ezoshosting.com/cs/scripts/cleansubj
> |
> | Tried your script and like the idea, but the following fails and I have
> | *no* knowledge of sed *^(
> | Re: [[some-text] Original Subject]
> |
> | result: Original Subject]
>
> Well, that's because this bit:
>
> :subject
> s/^\[[^ ]*\][ ]*//
>
> strips "[non-whitespace]spaces" so it got the "[[some-text]".
>
> Before I could fix this, what did you _want_ it to end up with?
The trailing ']' removed. thanks
--
Patrick Shanahan Registered Linux User #207535
http://wahoo.no-ip.org @ http://counter.li.org