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

RE: Removeing RE and Prefix



Well, you could try one of the following regexps:

s/\[sftest\]\s+//;
	This will remove the first '[sftest]' in the subject (even if not at
	the start of the subject line)
s/^\s*(Re:\s?)?\s*\[sftest\]\s+/$1/;
	This will remove '[sftest]' following a 'Re:' followed by any number of
whitespaces at the beginning of a string...

HTH,
Ricky

-----Original Message-----
From: Birger Mortensen [mailto:birger@sf.dk]
Sent: Thursday 28 February 2002 1:36 PM
To: mhonarc@ncsa.uiuc.edu
Subject: Removeing RE and Prefix


Is there a way to remove old prefix'es ?
I am using :

<SUBJECTSTRIPCODE>
s/^\[sftest\]://;
</SUBJECTSTRIPCODE>


But it don't get subjects like this one :Re: [sftest] Hmm Og var til denne
via WEB
I have a test setup at http://mail.sf.dk/MHonArc/SFtest/

Im using MhonArc 2.5.1 on a ezmlm arkive

Birger Mortensen


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