[Exim] More condition help

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Steve Drees
Date:  
À: Exim-Users@Exim. Org
Sujet: [Exim] More condition help
Exim 3.33

This condition always returns false.

  condition = ${if and\
                     {\
                       {match {$h_subject:}{spamcop} }\
                       {eq { ${lookup {$local_part} lsearch
{/etc/exim/spamcop} {$value}{no} } }{yes} } \
                     }\
                     {yes}{no} \
               }


This condition always returns true.

  condition = ${if and\
                     {\
                       {match {$h_subject:}{spamcop} }\
                       {eq { ${lookup {$local_part} lsearch
{/etc/exim/spamcop} {$value}{no} } }{yes} } \
                     }\
                     {yes}{no} \
               }{yes}{no}



I clearly don't grok string substitution very well.


--
Steve Drees CDTT (Certified Duct Tape Technician)
SysAdmin/Software Developer/Web Geek/Chief Bottle Washer
"A problem well-stated is a problem half-solved."
http://steve.wejustrock.com