Re: [Exim] Exim 3.x / Filters...

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Chris Knipe
CC: exim-users
Subject: Re: [Exim] Exim 3.x / Filters...
On Fri, 20 Dec 2002, Chris Knipe wrote:

> Is there any reason why ${domain} isn't a expansion variable in the filter
> language?


It is available in the language. However, if you try to use it in a
*system* filter, it will be empty. Why? Because a system filter is run
only once per message. A message may have many recipients. Which of
their domains would you expect to find?

> I don't know if it has been forgotten or anything, but according to the docs
> on the web site, $domain isn't a valid expansion variable (not listed -


Note the sentence "The variable substitutions most likely to be useful
                                              ^^^^^^^^^^^^^^^^^^^^^^^^
in filter files are...".


The current documentation for Exim 4 has this wording instead:

A complete list of the available variables is given in the Exim documen-
tation. This shortened list contains the ones that are most likely to be
useful in personal filter files:

The filter document is written for end users who are constructing their
own filter files. In most cases, an individual user has a mailbox only
in one domain, so the value of $domain is probably of no interest
(because it's always the same). That's why I haven't included it in the
shortened list.

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