Skip to Content.
Sympa Menu

en - Re: [sympa-users] scenari tules not working anymore

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Riccardo Veraldi <address@concealed>
  • To: Steve Shipway <address@concealed>, "address@concealed" <address@concealed>
  • Subject: Re: [sympa-users] scenari tules not working anymore
  • Date: Mon, 2 Nov 2015 18:20:06 +0100

On 01/11/15 21:50, Steve Shipway wrote:
Apparently
equal([sender], '^.*@oracle.com') smtp,smime,md5 -> do_it
is not working anymore
Did this ever work? I thought that the equal() test is for string equality,
not a regexp match, for which you use match(). We're on 6.1 but do not use
equal() with a regexp.
it worked perfectly on 6.1.7

on 6.2 I am now using match() but on 6.1 equal() with regexp was working.

thank you

Rick

The 6.1 manual says the same as in 6.2:

<condition> ::= [!] <condition
| true ()
| equal (<var>, <var>)
| less_than (<var>, <var>)
| match (<var>, /perl_regexp/)

... which seems to me to say that equal() will not take a regexp, only a
constant or a variable.

Incidentally, always remember to anchor your regexps, else you might
accidentally match "address@concealed"

Steve

Steve Shipway
T: +64 9 3737 599 ext 86487
E: address@concealed





Archive powered by MHonArc 2.6.19+.

Top of Page