Re: [exim] run script for every in/out message

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Marc Haber
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] run script for every in/out message
On Fri, 10 Jun 2005 15:12:29 +0100 (BST), Philip Hazel
<ph10@???> wrote:
>On Fri, 10 Jun 2005, Marcos Monge wrote:
>> There is some easy way to do that exim call a script (passing all the
>> message by the standard input) for every message (local messages, and
>> outgoing messages), and still continue doing the normal job (delivery
>> in the mailbox or route to inet)?
>
>In a system filter, put
>
> unseen pipe /your/script
>
>(Check the docs for options to set up a system filter.)


That will, however, run the script once per delivery attempt, while
"if first_delivery" will only try to run the script once, and doesn't
re-try if the script failed on the first try.

Greetings
Marc

-- 
-------------------------------------- !! No courtesy copies, please !! -----
Marc Haber         |   " Questions are the         | Mailadresse im Header
Mannheim, Germany  |     Beginning of Wisdom "     | http://www.zugschlus.de/
Nordisch by Nature | Lt. Worf, TNG "Rightful Heir" | Fon: *49 621 72739834