RE: parsing email from STDIN

2003-02-21 Thread Dan Muey
Excellent! Thanks Dan > -Original Message- > From: Casey West [mailto:[EMAIL PROTECTED] > Sent: Friday, February 21, 2003 2:50 PM > To: Dan Muey > Cc: Casey West; [EMAIL PROTECTED] > Subject: Re: parsing email from STDIN > > > It was Friday, February 21,

Re: parsing email from STDIN

2003-02-21 Thread Casey West
It was Friday, February 21, 2003 when Dan Muey took the soap box, saying: : : > : > It was Friday, February 21, 2003 when Dan Muey took the soap : > box, saying: : > : Hello list, : > : : > : What is the best way to get the headers of an email into a : > hash and also the text part of the body

RE: parsing email from STDIN

2003-02-21 Thread Dan Muey
> > It was Friday, February 21, 2003 when Dan Muey took the soap > box, saying: > : Hello list, > : > : What is the best way to get the headers of an email into a > hash and also the text part of the body into an array or variable? > > Mail::Internet->new() accepts a list reference full of li

Re: parsing email from STDIN

2003-02-21 Thread Casey West
It was Friday, February 21, 2003 when Dan Muey took the soap box, saying: : Hello list, : : What is the best way to get the headers of an email into a hash and also the text part of the body into an array or variable? Mail::Internet->new() accepts a list reference full of lines in an email messa

RE: parsing email from STDIN

2003-02-21 Thread Dan Muey
Thanks I'll look into parsing out the message from the header boundary bit. All I'm trying to do is get some of the header fields and do different things based on them. And store the body alone somewhere. Here's what I have and it works perfecto but one question... --- use Mail::I

RE: parsing email from STDIN

2003-02-21 Thread wiggins
On Fri, 21 Feb 2003 11:13:06 -0600, "Dan Muey" <[EMAIL PROTECTED]> wrote: > Sweet!! Thanks a million!!! > > Any ideas how to get the text/plain section of the message into an array or scalar? > This goes back to the everything in the body before

RE: parsing email from STDIN

2003-02-21 Thread Dan Muey
bject: Re: parsing email from STDIN > > > It was Friday, February 21, 2003 when Dan Muey took the soap > box, saying: > : Hello list, > : > : What is the best way to get the headers of an email into a > hash and also the text part of the body into an array or variable?

parsing email from STDIN

2003-02-21 Thread Dan Muey
Hello list, What is the best way to get the headers of an email into a hash and also the text part of the body into an array or variable? Here's what I have so far :: Assuming I have the entire email form stdin in the var $entmsg. # First get body use Mail::Internet; my $mail = new Mail::Inter