Re: [Exim] post processing possible?

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: Wayne Sheppard
CC: exim-users
Assumpte: Re: [Exim] post processing possible?
On Mon, 18 Nov 2002, Wayne Sheppard wrote:

> I want to execute a progam and pass the username as an argument *after*
> the email has been accepted (i.e. after passing filter rules) and
> written to disk. How would this be accomplished, or is it even possible
> in Exim 4.x?


If by "filter rules" you are talking about the system filter, you should
note that this is run at the start of delivery, not during message
reception.

If the action you want is

accept message, write to disk
run special program
do delivery

then you can either run the program from a system filter (run once per
message per delivery attempt), or you could probably do something with a
router and a condition (run once per recipient per delivery attempt). In
both cases, you could limit it to the first delivery attempt.

But it depends on what you mean by "username". If you are talking about
the recipient of a message, note that a single message may have more
than one recipient.

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