[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mhonarc
Subject:    RE: Condensing multiple re, fw and fwds (was  Removeing RE and Pr
From:       "Morse, Richard E." <REMORSE () PARTNERS ! ORG>
Date:       2002-02-28 23:20:06
[Download RAW message or body]

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:snevel@sonic.net]
Sent: Thursday 28 February 2002 4:57 PM
To: mhonarc@ncsa.uiuc.edu
Subject: Condensing multiple re, fw and fwds (was Removeing RE and
Prefix)


Jym Dyer <jym@econet.org> 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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic