In your case, you'd want to put the following into your .forward:
where /home/foo/ is replaced, of course, by the path to your script.|/home/foo/mail.pl
In the script, then, you can just read the message from STDIN. Look at the thread in question for more info.
In reply to Re: .forward
by btrott
in thread .forward
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |