Re: [Exim] fgrep-style lookups in filter files

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Philip Hazel
Dátum:  
Címzett: Andromeda
CC: exim-users
Tárgy: Re: [Exim] fgrep-style lookups in filter files
On Thu, 8 Feb 2001, Andromeda wrote:

> fgrep allows me to use the contents of a file as input to look up in
> something else, i.e. each item in the file is tested against the input and
> a positive is returned if any item is found.
>
> My question is... can I do the same in Exim with the expansion items?


I don't think so.

> If this is not possible, is it possible to have exim use the output from
> fgrep (either printed or the return value) invoked via the pipe command
> and fail the message,


Not in a filter. (May be possible in Exim 4.)

> I've been very successful using procmail in the past, but I cannot get
> procmail to do $h_to: and $h_from: comparisons, and I would like to stay
> within the Exim framework to do my intelligent filtering.


Note that Exim filters are not like procmail. They work in different
ways. A filter runs before any deliveries; procmail *is* a delivery.

> P.S. Is it possible at all to set one of the variables that are passed to
> user filters to contain the Received headers?


$h_received: ?

-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.