in reply to Parsing Incoming Mail

MIME::Tools 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.

HTH, SSF

Replies are listed 'Best First'.
Re^2: Parsing Incoming Mail
by Rodster001 (Pilgrim) on Jan 05, 2009 at 19:37 UTC
    Just to wrap up this thread, I did end up using MIME::Tools and everything is working nicely. It wasn't bad at all once I got into it. I've tested with a few user agents and so for so good. It is a heavyweight but what can I say, email is heavyweight. And yes, I agree with you sflitman, CPAN is a friend which I wholly embrace.