is there anyway to send a $MATCH to stdin.
At 11:55 PM 8/1/00 -0700, you wrote:
At 13:17 2000-08-02 +0700, Anders Almman wrote:
i would like to get the HEADER and the MESSAGE from the mail sent to my
program, how would i do this?
:0
* ^TOguestbook(_at_)mydomain(_dot_)com
* !^FROM_DAEMON
|/usr/www/cgi-bin/php3.cgi -q myscript.php3 $HEADER $MESSAGE
Uh, you're piping the message (header/blankline/body) into the program (see
the pipe | symbol?), not passing them in as commandline arguments (they're
not stored as environment variables anyway).
Consider rewriting your script to take input from stdin. If not, I guess
you could always write a wrapper script to take input from stdin and drop
it into a couple of variables, but you'd no doubt run into trouble the
first time you got a large message.
---
Please DO NOT carbon me on list replies. I'll get my copy from the list.
Sean B. Straw / Professional Software Engineering
Post Box 2395 / San Rafael, CA 94912-2395
_______________________________________________
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