Re: [Exim] exim robots

Pàgina inicial
Delete this message
Reply to this message
Autor: Vadim Vygonets
Data:  
A: exim-users
Assumpte: Re: [Exim] exim robots
Quoth andrew on Mon, Nov 29, 1999:
> I'm new to exim & would appreciate some asist in how to set up a robot
> function.


Why do you call it that?

> For example say i would like any mail sent to
> john@???
> put into a file and have a program /usr/local/bin/do-stuff run against that
> file.


Usually, it's done by making a program to receive mail from stdin
and setting up a pipe transport.  A shell script can do it:
    #!/bin/sh
    cat > /var/mail/john
    /usr/local/bin/do-stuff


Other solutions are possible, but not advised.

Vadik.

-- 
Time is an illusion.  Lunchtime doubly so.
    -- Ford Prefect