<<< Date Index >>>     <<< Thread Index >>>

Re: index_format filtering?



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?
No change?

Cheers,
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

Me, I'm still finding it hard to come to terms with the notion that there
wasn't Jell-o at the Last Supper.       - silver@xxxxxxxxxx (Hi Ho Silver)