You're probably looking for something that will read the 'mbox' format --
Mail::MboxParser will do it. Or you can probably give
Mail::Folder a shot, as it has an mbox driver. Here's a few more that came up when searching
CPAN for 'mbox':
I strongly recommend you check out each of those, and decide which one has the features you need while being easiest to use.
--Stevie-O
$"=$,,$_=q>|\p4<6 8p<M/_|<('=>
.q>.<4-KI<l|2$<6%s!<qn#F<>;$,
.=pack'N*',"@{[unpack'C*',$_]
}"for split/</;$_=$,,y[A-Z a-z]
{}cd;print lc