procmail
[Top] [All Lists]

Re: [newbie] execute script on new mail

2000-07-31 10:58:14
You can write the script which performs all that stuff in whatever
language you want. But adding this to your .procmailrc file should
execute it. Untested, of course.

# execute script every time mail arrives
:0
| /path/to/your/script


On Sun, 30 Jul 2000, Vincent De Baere - narrowmargin wrote:

Hi everybody,

i am searching a way to have a script executed each time a new mail arrives.
Some people in ngs have told me that is possible with procmail. Since what i
want to do is not very usual, i would lik to ask it here first.

a new mail arrives. A script needs to executed and that script has to: 1)
perform some sql commands on an external ms sql server and 2) forward the
mail, with the attachements and all the stuff... just forward it the way it
is when it arrives, well, er, i suppose that's what's called forwarding ;-)

Since i am not really familiar with programming on the Linux-OS, i would
really appreciate hints on how to do it (including tips regarding which
scripting language is most convenient for doing it... etc.)

Thanks a lot!

Vincent


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail



_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>