Completely untested, but you could try:

s/(Re:\s*|Fwd:\s*)+/Re:/

Note, of course, that this turns all 'Fwd:'s into 'Re:'s

Ricky

-----Original Message-----
From: Simeon Nevel [mailto:[EMAIL PROTECTED]]
Sent: Thursday 28 February 2002 4:57 PM
To: [EMAIL PROTECTED]
Subject: Condensing multiple re, fw and fwds (was Removeing RE and
Prefix)


Jym Dyer <[EMAIL PROTECTED]> said:
> 
>   Re: Fwd: Re[2]: Fwd: Re: [sftest] ME TOO!
> 
> without throwing "[sftest]" in there four more times.

While we're on the subject.. is there a single regexp that can reduce an 
an abitrary collection of Re's and Fwd's to a single Re: ?

I currently preprocess my incoming messages with a perl prog consisting 
a long series of regexps to deal with this.

I would be nice if I could craft a couple of stripsubjectcode expressions
that would deal with this.

It would give me an excuse to upgrade my MHonArc ;)

Simeon

-- 
If you're not outraged, you're not paying attention

Reply via email to