Hi
I have tried to pipe mails into a php script by using a .forward file:
"|/usr/local/bin/php - q /home/mailtest/mailfilter.php"
and a mailfilter.php:
<?php
$fr=fopen("/dev/stdin", "r");
$fr = fopen("php://stdin","r");
$fw = fopen ("/home/mailtest/test.txt", "w");
while (!feof ($fr)) {
$buffer = fgets($fr, 4096);
fputs ($fw, $buffer);
}
fclose ($fr);
fclose ($fw);
?>
But it is not working. It seems not even to hit the mailfilter.php file.
Anyone an idea, what I am doing wrong ???
Thanks
Andi