[exim] $message_body lsearch

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Hans Klose
Date:  
À: exim-users
Sujet: [exim] $message_body lsearch
I have a rule which searches the mail body for given sentences.
I would like to put these sentences from the configuration
into a file.

deny message = STOP!
condition = ${if or { \
    {match {${lc:$message_body}}{.*this is sentence one.*}} \
    {match {${lc:$message_body}}{.*this is sentence two.*}} \
    {match {${lc:$message_body}}{.*this is sentence three.*}} \
    }{1}{0}}


I tried something like

condition = ${if match{$message_body}{lsearch;/etc/local/exim/test-word}{yes}{no}}

with no success.

Wow can I do this?

Regards Hans.
--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de