[prev in list] [next in list] [prev in thread] [next in thread] 

List:       exim-users
Subject:    Re: [Exim] complex conditionals?
From:       Philip Hazel <ph10 () cus ! cam ! ac ! uk>
Date:       2000-09-28 8:38:55
[Download RAW message or body]

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@cus.cam.ac.uk      Cambridge, England. Phone: +44 1223 334714.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic