in reply to Parsing Attachments

Try using MIME::Lite. It's really simple to work with.