in reply to Parsing a multipart mail

try Mail::Box , it is well documented.