[exim] Match Subject with phrases in file?

Góra strony
Delete this message
Reply to this message
Autor: Kevin
Data:  
Dla: exim-users
Temat: [exim] Match Subject with phrases in file?
I am trying to implement a rule that will allow me to place phrases in a
file which is read and then used to match against partial subject lines.

The ACL looks like:

warn
    condition = ${if and{\
    {def:header_subject:}\


{match{$header_subject:}{${readfile{CONFIGDIR/match-subjects}{|}}(?!)}}}{1}{0}}
    message = Matched Subject: (subject=$h_subject:)


The file would right now contains phrases like:

###############################################
^\{Virus\?\}
badword
Virus Detected by Network Associates, Inc\. Webshield
^---- Virus Detected ----$
^Virus [Dd]etected$
^Virus Alert$
^InterScan NT Alert$
^Virus found in the message$
###############################################

It doesn't appear to work, I don't get any errors, but nothing appears to
match when a message flows through.
I found the syntax from another posting (2004) so perhaps it needs
updating??

This is being used in the data ACL section.

I really plan on using it for other types of phrases, but I am just trying
to get it to work with the example I found.

I'm using Exim 4.76