$body returns: MIME::Body::InCore=HASH(0x83a39ac) while
$filename comes out blank.
Update
foreach $x (@attypes){
if ($subentity->mime_type =~ m/$x/i){
$attachment = $subentity->bodyhandle->print();
push @attachment, $attachment;
print "x = $x subentity =".$subentity->mime_type."\n";
push @attname, $subentity->head->mime_attr('content-disposition.
+filename');
}
}
The attachment prints out but is not stored in $attachment. @attname now holds the attachment name correctly. All that remains is figuring out how to store the attachement into a variable for later use.
Neil Watson
watson-wilson.ca |