has saved me on many occasions. It isn't hard to use, and the overhead is worth it for handling the vagaries of MIME-formatted emails, especially ones with nested attachments. I process SpamAssassin-filtered mail which can have attached RFC-822 messages which themselves contain attachments. Don't write your own parser, the whole point of CPAN is leverage what the community provides you.