Re: [exim] redirecting email to perl script

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Markus Hardiyanto
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] redirecting email to perl script

--- Tony Finch <dot@???> wrote:
> On Fri, 25 Feb 2005, Markus Hardiyanto wrote:
> >
> > i need to redirect all email that coming in to
> perl
> > script that i write.
>
> begin routers
>
> to_perl:
> driver = accept
> domains = +local_domains
> transport = to_perl
>
> begin transports
> driver = pipe
> command = /home/username/script.pl


i already try rules above, the rules does call my perl
script, but how to get the email?

i can get the message id by calling the perl script
like this:

begin transports
driver = pipe
command = /home/username/script.pl $message_id

but when i check /var/spool/exim/input, it is empty,
there is no email with message id that my perl script
get. and that email is not delivered to it's
recepient.

so how to get the email from exim to my perl script,
my perl script will do some scanning and then pass
that email to exim again (i guess by put it to exim's
spool directory?)

thanks


Best Regards,
Markus

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com