Re: [Exim] complex conditionals?

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Dennis Taylor
CC: exim-users
Subject: Re: [Exim] complex conditionals?
On Wed, 27 Sep 2000, Dennis Taylor wrote:

> I've checked the www.exim.org, and it doesn's say yay or nay about this.
>
> Does the system filter mechanism support nested conditionals?


This is taken from doc/filter.txt. Note the final sentence.

18. Obeying commands conditionally

Most of the power of filtering comes from the ability to test conditions
and obey different commands depending on the outcome. The "if" command is
used to specify conditional execution, and its general form is

    if    <condition>
    then  <commands>
    elif  <condition>
    then  <commands>
    else  <commands>
    endif


There may be any number of "elif"-"then" sections (including none) and the
"else" section is also optional. Any number of commands, including nested
"if" commands, may appear in any of the <commands> sections.


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.