jc wrote: > Hello, > > I inherited a project where we use a procmail filter to filter emails as > they come to our web server and pipe them through a perl script. The > script called "filterme" goes through the email line by line and grabs > information on the email, puts it into an array, and when it is finished, > it appends the data collected to a file, (a log file of sorts). > > I have to redo this script to grab a different set of information, but I > need to filter existing emails already in the mail spool. It was suggested > to me that I could go to the mail folder (var/users/mail) and grab the > folder and then pipe all the files in the mail folder through the > "filterme" script. However, when I look at the mailspool folder, I only > see one file that contains all the emails. I was wondering if there was a > way to somehow parse this file and pipe the results through the "filterme" > script.
#This assumes that filterme can executed and is in the PATH open (FILTERME, "| filterme) or die "Failed to get handle to write to filterme : $!\n"; print FILTERME "some stuff" #piping "some stuff" to filterme close (FILTERME) Is this what you are looking for perldoc -f open > > > I realize I need more education in how email works and I am slowly picking > through the sendmail book by O'Reilly. But if anyone knows a simple answer > to this, I would be much obliged. > > Thanks in advance, > > Joan Chyun > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
