in reply to Parsing email

The very best way is: Mail::Message->new( $your_message_from_664_093 );   (update: not even close)

It does everything you want and much more.

my $body = $msg->body; my @encoded = $msg->body->lines; my @to = $msg->to; my @from = $msg->from;

-Paul

Replies are listed 'Best First'.
Re^2: Parsing email
by Anonymous Monk on Jan 03, 2014 at 21:26 UTC
    This does not appear to work and I see no way it ever could have.
      You're right. I don't know what I was thinking... it was quite a while ago, but it's clear I didn't try it. In fact, I just spent like 10 minutes trying to figure out how to fix it and I gave up (apathy mostly). What surprises me most about this, cuz I do all sorts of dumb things to be honest, is how many people clicked ++ on it thinking I was right.

        "What surprises me most about this, cuz I do all sorts of dumb things to be honest, is how many people clicked ++ on it thinking I was right."

        Your reputation?