Re: [Exim] Vilter file regexp

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Jeffrey Goldberg
Fecha:  
A: Jaco van der Schyff
Cc: exim-users
Asunto: 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