I've got the procmailrc file calling the appropiate perl script. That works fine and it writes to a log file. But I can't seem to capture the STDIN in perl. Everytime I try $message = , then try to print FILE $message, the script won't log anything. Any idea?
$message = ;
$theTime = localtime;
open THEFILE, '>> incomingPerlLog.txt';
print THEFILE "$theTime: Incoming Mail recieved.";
print THEFILE $message;