Re: [Exim] getting exim to scan recursively through subdirec…

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Kurt Lieber
CC: exim-users
Subject: Re: [Exim] getting exim to scan recursively through subdirectories
On Thu, 25 Sep 2003, Kurt Lieber wrote:

> archalias:
> driver = redirect
> file = /var/mail/alias/$local_part
> no_expn
> check_ancestor
> file_transport = address_file
> pipe_transport = address_pipe
> reply_transport = address_reply
>
> Which works great. However, for organizational and permissioning purposes,
> I'd like to have arbitrarily-named sub-directories. Something like:
>
> file = /var/mail/alias/*/$local_part
>
> Which doesn't work, but illustrates what I'm after.


Well, since "file" is an expanded string, you can in principle make it
work, even if you have to write a program and call it using ${run.

Hmm. I can't think of an easier way than that, in fact, or you could do
the same thing using embedded Perl (which would save a process).


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book