procmail
[Top] [All Lists]

Starting a perlscript...

1997-09-05 13:33:05
Anybody could tell me how to launch a perl script with procmailrc?
... and passing along the FROM, SUBJECT, and CONTENT as parameters ?

I'm not used to procamil, but i tried something like that...

# SAM CGI
:0
* ^TOsam
*!^FROM_DAEMON
*!^X-Loop: sam(_at_)my(_dot_)domain
| (formail -r -k -t -X From: -X Subject: -I "" -s $PATHTOCGI )

Tanks for the help...

Nicola Grenon
Nicola(_dot_)Grenon(_at_)igt(_dot_)net

by the way, if it's not too complicated, is there a way to split the content of 
"FROM" in 2 parts? NAME and EMAIL ?   (Like in FROM: "'This is the name'" 
<This(_at_)is(_dot_)the(_dot_)e-mail>)

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