Hey all, I have a little PHP script that is triggered by qmail when a message comes into a qmail mailbox... that works great, but qmail needs an 'exit code' to be returned to it, or else it will keep sending me the same message over and over (hate when that happens!).
My script is invoked as follows:
#!/usr/local/bin/php -q
<?php
// ... script ...
?>
--so the question is, what's the right way to pass a status code back to qmail? qmail passes me the msg on stdin; do I have to fwrite the return code to stdout or something weird like that?
Here's the bit on qmail exit codes, FWIW-- qmail is just looking for a number:
http://www.ezmlm.org/faq-0.40/qmail-command.8.html
Thanks in advance for any help.
best,
Eric