[Pdx-pm] parsing a MIME message
techdude at dpo.org
Wed Jan 4 17:44:30 PST 2006
I need to parse an email message which may be plain text or MIME to
get the header info and the text/plain content. I'm trying to use
MIME::Parser to do this but I'm confused about the objects I end up
and am hoping someone can get me over the hump.
$mime_object = MIME::parse ->new();
$entity= $mime_object->parse(\*FH); #parse the mail message
Now I'm stuck.
I'm supposed to be able to get a MIME::Header and MIME::Body out of
$entity, but I'm lost in the syntax. Particularly since I might see
entities (I assume multipart/alternative or an attached vcf file
produces multiple entities??)
I want to end up with $from, $subject, and $body variables.
Democratic Party of Oregon
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pdx-pm-list