procmail
[Top] [All Lists]

Email -> Perl Script Round III

1998-01-23 13:56:51

        OK, I have actually got a *very simple* procmail and perl script
working to do this. (I am trying to get a specific email address to send
mail to a perl script).

        Here is the simple .procmail script:

:0:
* ^TOscript(_at_)webmarquee(_dot_)com
|     perl $HOME/send_test

        
        And here is the perl script it points to:


#!/usr/bin/perl

$x = <STDIN>;

open (FILE,">test.data");
print FILE $x;
close (FILE);


        This whole mess ;-) ends up saving int the text file the
following:


From wmadmin(_at_)webmarquee(_dot_)com  Wed Jan 21 13:51:30 1998


        Sooo, how would I get the perl script to recieve the whole email
documant for writing to the text file?????

        Any experts? Know-it-alls? "Will massage ego for code"...       


<Prev in Thread] Current Thread [Next in Thread>