[Exim] filter syntax

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: cjackson
Dátum:  
Címzett: exim-users
Tárgy: [Exim] filter syntax
Problem: When I add more conditions to the below filter, like one of
these....
if personal or $h_subject: does not contain *SPAM* \n \
if personal or "$h_subject": does not contain "*SPAM*" \n \
if personal or ("$h_subject": does not contain SPAM ) \
etc etc; Exim gives errors reading the filter.

It seems that any multipart condition fails. Any ideas?

This router works fine.
out_of_office:
  driver = redirect
  allow_filter = true
  user = mail
  hide condition = ${if eq {${lookup ldap
{user="cn=admin,dc=localsurface,dc=com" \
        pass=PASS
ldap:///cn=${quote_ldap:$local_part},ou=${quote_ldap:$domain}, \
        dc=localsurface,dc=com?outOfOffice?sub?}}}{true}{yes}{no}}
  hide data = # Exim Filter \n \
        if personal \n \
        then \n \
           mail to $sender_address \
                from $local_part@$domain \
                subject "Out of Office" \
                text "${lookup ldap
{user="cn=admin,dc=localsurface,dc=com" pass=PASS \


ldap:///cn=${quote_ldap:$local_part},ou=${quote_ldap:$domain},\
                dc=localsurface,dc=com?outOfOfficeText?sub?}}" \
                once /home/vmail/$domain/$local_part \
                once_repeat 7d \
        endif
  reply_transport = out_of_office_reply
  unseen


--

Craig Jackson
__________________________

localsurface.com
__________________________