Re: [Exim] Vilter file regexp

Góra strony
Delete this message
Reply to this message
Autor: Jeffrey Goldberg
Data:  
Dla: Jaco van der Schyff
CC: exim-users
Temat: Re: [Exim] Vilter file regexp
On Tue, 13 Feb 2001, Jaco van der Schyff wrote:

> Error in message_filter file: unexpected "(" in line 3 of filter file
>
> And line 3 in my filter file reads as follows:
>
> if $message_body matches name\\=\\".*\\.\([eE][xX][eE]|[vV][bB][sS]\)\\"
> and not error_message


I think you need to quote the regular expression. Also these are perl
regular expressions, so you should use ( instead of \( for grouping. Also
the "matches" operation is case insenstive, you don't need the upper and
lower case alternatives.

Finally, you may wish to model your filter off of what's available from

ftp://ftp.exim.org/pub/filter/

which contains a filter to do exactly what you want.

-j

--
Jeffrey Goldberg
I have recently moved, see http://www.goldmark.org/jeff/contact.html
Relativism is the triumph of authority over truth, convention over justice