Procmail: program/script output to variable (email on STDIN)
Try the following:
RECEIVER=`/usr/bin/php /var/www/calculatereceiver.php`
:0
! $RECEIVER
More secure version that may not work with all sendmail look alikes:
RECEIVER=`/usr/bin/php /var/www/calculatereceiver.php`
:0
! -- $RECEIVER
Documentation references
man procmailrc
:
Any program in backquotes started by procmail will have the entire mail at its stdin