in reply to .forward

I believe it's either an address or a pipe to a script. There may be more possibilities, but you don't need them for this purpose.

In your case, you'd want to put the following into your .forward:

|/home/foo/mail.pl
where /home/foo/ is replaced, of course, by the path to your script.

In the script, then, you can just read the message from STDIN. Look at the thread in question for more info.

Replies are listed 'Best First'.
RE: Re: .forward
by Jonathan (Curate) on Apr 20, 2000 at 14:36 UTC
    Further to the above. The ~/.forward file permissions are significant if others have write access it will be not work as the address would be considered unsafe. A .forward file record with a preceding \<user name> will stop any further aliasing stop mail does bounce around. e.g. \<user_name>, |/home/user_name/bin/perl_prog For more info try man sendmail man aliases | forward
      Sorry about that how lost comments! How is this filtered? Makes me look a bigger fool than usual I'll try this, <CODE> ~/.forward file record example \user_name, |path/command <\CODE>