mhonarc-users

RE: Removeing RE and Prefix

2002-02-28 14:38:59
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(_at_)sf(_dot_)dk]
Sent: Thursday 28 February 2002 1:36 PM
To: mhonarc(_at_)ncsa(_dot_)uiuc(_dot_)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

<Prev in Thread] Current Thread [Next in Thread>