in reply to Re: Parsing Incoming Mail
in thread Parsing Incoming Mail

Looking at it now. I also saw this thread about Mail::Message. This is not the first time I have been here, but I am a little surprised how difficult mail handling still is. Many of the modules available on CPAN don't seem to be in a fully developed state (at least the ones I have looked at). It seems the Internet has been around long enought that we would have this part down by now ;) Looking at the reviews on CPAN for Mail::Message and MIME::Parser many are complaining about the overhead of these modules and more than once I have seen people saying they have just resorted to writing their own parser.

Replies are listed 'Best First'.
Re^3: Parsing Incoming Mail
by DStaal (Chaplain) on Dec 30, 2008 at 18:03 UTC

    That's probably a case of the common case vs. technically correct. ~95% of the time, a fairly simple parser will get you all of the parts of an email message. The rest of the time consists of obscure edge-cases, weird nesting rules, and never-seen formats. Much of the time in particular contexts you can get away with ignoring all of that detail and just handling the 'standard' cases.