Re: [Exim] How to get filename in an address_file pipe trans…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Philip Hazel
Dátum:  
Címzett: Malcolm Beattie
CC: exim-users
Tárgy: Re: [Exim] How to get filename in an address_file pipe transport?
On Tue, 28 Sep 1999, Malcolm Beattie wrote:

> Suppose I have the following sort of setup:
>
>     # transports
>     my_save_file:
>    driver = pipe
>    command = "............"

>
>     # directors
>     filter:
>    driver = forwardfile
>    filter
>         file_transport = my_save_file

>
> and a filter triggered by a message through that director contains
>
>     save foo

>
> How can I get at that filename (foo) in the command run by the
> my_save_file transport?


From TFM:

$address_file: When, as a result of aliasing or forwarding, a message is
directed to a specific file, this variable holds the name of the file when
the transport is running. For example, using the default configuration, if
user r2d2 has a .forward file containing

    /home/r2d2/savemail


then when the address_file transport is running, $address_file contains
'/home/r2d2/savemail'. At other times, the variable is empty.

Oh. You are using a *file* name to get to a *pipe*. Hmm. Have to read
the code ... type, type, type ... well, it looks as though it should
still set $address_file, though I've never tested this.

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