in reply to Re: Parsing emails with attachments
in thread Parsing emails with attachments

try to remove all <> tags with:
$body =~ s/<[^>]*>//sg;
The s modifier (at the end) tells the search to treat the $body variable as a single line. so \n's don't matter.