Re: How to pipe a mail message into a program

1999-01-17 Thread Alan Mead
At 03:27 PM 11/19/99 -0500, Ward William E PHDN wrote: >doing it in Perl. Problem is, I've forgotten how to set the .forward to >pipe my incoming email message to the program. For testing, I'd actually I don't know syntax to do this in a .forward. You should be able to use procmail or use an

Re: How to pipe a mail message into a program

1999-01-17 Thread Charles Galpin
if you can modify the alias in sendmail for this email address, this should get you started. #!/usr/bin/perl # mailbot.pl $debug =1; #invoked from /etc/aliases like this #mailbot:[EMAIL PROTECTED], "|/home/cgalpin/bin/mailbot.pl" open (LOG, ">/tmp/mailbot.log" ) if $debug; print LOG "Got M