On Mon, 2007-09-24 at 11:46 -0400, John Jetmore wrote:
> I have very limited experience with Exim filters.  I've mostly use 
> procmail and the times I've used filters it's Just Worked.  But now I'm 
> feeling a little confused.  According to my reading all of these should be 
> equal:
> 
>        if $h_To: matches "(proj|updates)[EMAIL PROTECTED]@jetmore\\\\." then
>        if $h_To: matches (proj|updates)[EMAIL PROTECTED]@jetmore\\. then
>        if $h_To: matches \N(proj|updates)[EMAIL PROTECTED]@jetmore\.\N then
> 
> But in my filter only the first one works.  The other two actually result 
> in a filter processing error:

The bracket is parsed as a condition aggregator, like this:

if ($h_To: contains "graeme" and not personal)
then
  seen finish
endif

I'm guessing, because you want to use the bracket as part of a regular
expression, that the brackets need to be escaped - which the quotes do
automagically.

See http://www.exim.org/exim-html-current/doc/html/filter.html#SECTif

Graeme


-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to