Re: query files in regular expressions

"Peter Bowyer" <[email protected]> Thu, 21 Oct 2004 21:43:10 +0100
Newsgroups gmane.mail.exim.exiscan.user
Message-ID <01a801c4b7ae$945b4b20$0a46a8c0@pbdesktop>
Anand Gupta <[email protected]> wrote:
> Is there a way to query files to search for text which can be used
> for regular expressions matching ? Every time editing exim.conf for
> adding regular expressions is getting pretty hard specially when
> there are many servers to work with.

The rhs of the regex statement is an expanded string, so I guess it should
be possible to use $readfile to read a list of regexes from an external
file, one per line.

eg (untested)

deny message = Contains unwanted content
regex = ${readfile {filename}{:}}

Peter