Re: [EXIM] match-string in filters

Top Page
Delete this message
Reply to this message
Author: Nigel Metheringham
Date:  
To: Philip Hazel
CC: Rudolf Kompf, exim-mailing-list
Subject: Re: [EXIM] match-string in filters

ph10@??? said:
} The argument after "matches" is string-expanded. Consequently you need
} to escape both \ characters and $ characters (and { and } characters
} if you have them). What you need is

}   if $message_body matches \\\$\\s*\\d+\\s+[mb]illion or
}    I know this is tedious and confusing, but when you've got two
} different  interpretations of a string going on, this is an
} unfortunate  consequence.  


It may be worth reading up on TCL since that language frequently suffers
this problem due to its string expansion strategy. That might help people
get their heads round the problem.

    Nigel.
-- 
[ Nigel.Metheringham@???   -  Systems Software Engineer ]
[ Tel : +44 113 207 6112                   Fax : +44 113 234 6065 ]
[      Real life is but a pale imitation of a Dilbert strip       ]




--
*** Exim information can be found at http://www.exim.org/ ***