[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Condensing multiple re, fw and fwds (was Removeing RE and Prefix)



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


[Index of Archives]     [Bugtraq]     [Yosemite News]     [Mhonarc Home]