RE: [Exim] user variables in filters

Góra strony
Delete this message
Reply to this message
Autor: Mike Scott
Data:  
Dla: exim-users
Temat: RE: [Exim] user variables in filters
Thanks Philip,

I've updated my bible (p.259) with both tips.

Mike

-----Original Message-----
From: Philip Hazel [mailto:ph10@cus.cam.ac.uk]
Sent: Thursday, June 26, 2003 9:18 AM
To: Mike Scott
Cc: exim-users@???
Subject: Re: [Exim] user variables in filters


On Thu, 26 Jun 2003, Mike Scott wrote:

> if $n1 is not below 3 and $n1 is not above 3 then
>    (do stuff)
> endif

>
> Please comment if there is a better/cleaner way to do this. Note: I
> intentionally don't use deeply nested elif structures (don't like them

:-{).
> Note #2: My O'Reilly bible makes no mention of a direct integer comparison
> such as 'number1' is 'number2' - sigh....


As it is all text based, you can say

    if $n1 is 3


quite happily (but "if $n1 is 03" won't work).