I have a procmail script set up which pipes to a PHP script when an email subject line matches:
:0
* ^[email protected]|^Subject.*(REMOVE|Undelivered Mail)
| /usr/bin/php -f /var/www/subs.humortimes/removemail.php
Is there a way to pass a variable, perhaps like you do with query-string parameters? I’ve tried the following, and neither works:
| /usr/bin/php -f /var/www/subs.humortimes/removemail.php?iscron=1
| /usr/bin/php -f /var/www/subs.humortimes/removemail.php --iscron=1
I want the PHP script to be able to check what is triggering it. Thanks for any help.