procmail
[Top] [All Lists]

Re: regex problem with '*'

2000-02-18 00:57:46
On Thu, 17 Feb 2000 15:11:29 +0100 
michael renner <michael(_dot_)renner(_at_)gmx(_dot_)de> wrote:

Hi, i used the following rule: :0 * ^Subject[: ] ADV* $MUELL to
move marked SPAM to my trash folder ($MUELL).

I thought that every mail, having a subject starting with ADV,
would be moved to the trash.

Unfortunately, mails with Subject like 'ADMIN' are trashed to :-(

Because the "*" regular expression matches _zero_ or more
repetitions of the previous token.  ADMIN starts with AD followed by 
precisely zero V's...

-- 
J C Lawrence                                 Home: claw(_at_)kanga(_dot_)nu
----------(*)                              Other: coder(_at_)kanga(_dot_)nu
--=| A man is as sane as he is dangerous to his environment |=--

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