Re: [Exim] user variables in filters

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Philip Hazel
Fecha:  
A: Mike Scott
Cc: exim-users
Asunto: 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).

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book