Re: [Exim] if statement

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Peter Radcliffe
Datum:  
To: exim-users
Betreff: Re: [Exim] if statement
wt@??? probably said:
> Is it possible to nest the "AND" / "OR" conditions within each other? The
> FAQ doesn't say anything about it and the documentation doesn't say it can
> or can't be done. I'm currently using exim from debian slink (2.05-1)


The documentation should say where strings are expected and you can
work out where they will be expanded.


One of the things I'm currently using is;

  new_address = "\
    ${lookup{$local_part} dbm \
      {EBASE/domains/${lc:${length_1:${domain}}/${domain}}DBEXT} \
      {\
        ${if !match {$value}{^:(defer|fail|blackhole|include):} \
          {${local_part:$value}${local_part_suffix}@\
           ${if eq {${domain:$value}} {} QPDSUFF {${domain:$value}}}}\
        fail}\
      }\
    fail}"


If you get the syntax and line continuation right you can do most
anything from most anything.

> If not, that explains the error I'm getting.


It might help if you told us the error.

P.

-- 
pir                  pir@???                    pir@???