develooper Front page | perl.beginners | Postings from February 2002

Re: getting a block of text from file

Thread Previous | Thread Next
From:
Michael Fowler
Date:
February 12, 2002 10:55
Subject:
Re: getting a block of text from file
Message ID:
20020212185427.GA12536@shoebox.net
On Tue, Feb 12, 2002 at 09:47:07PM +1300, Chris Zampese wrote:
[snip]
> Content-Transfer-Encoding: quoted-printable
> 
> The message of the email is here then it is followed by
> 
> ------=_NextPart_000_0118_01C1B358.DE107900
> (lots more lines of stuff)
> 
> how would I get just the message into a variable (or array or whatever) so
> that I can use it?

I would suggest using the MIME::Tools module available on CPAN, possibly in
combination with an email parser, such as Mail::Internet.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About