procmail
[Top] [All Lists]

Re: Starting a perlscript...

1997-09-05 14:24:43
This is what I'm currently using. If anyone has a more efficient way,
please let me know. 

 # SAM CGI
 :0
 * ^TOsam
 *!^FROM_DAEMON
 *!^X-Loop: sam(_at_)my(_dot_)domain
 | cat > $ABSOLUTE_PATH_TO_TEMP_FILE ; $ABSOLUTE_PATH_TO_CGI

I then have my perl script act accordingly (parse headers and body into
associate arrays)

-Aaron Dougherty
 Sim Master
 Star Wars Simulation
 mailto:webmaster(_at_)swsim(_dot_)com
 http://www.swsim.com

On Fri, 5 Sep 1997, Nicola Grenon wrote:

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>