I\'m looking for good/working/simple to use php code for parsing raw email into parts.
I\'ve written a couple of brute force solutions, but every time, one small cha
I'm not sure if this will be of help to you - hope so - but it will surely help others interested in finding out more about email. Marcus Bointon did one of the best presentations entitled "Mail() and life after Mail()" at the PHP London conference in March this year and the slides and MP3 are online. He speaks with some authority, having worked extensively with email and PHP at a deep level.
My perception is that you are in for a world of pain trying to write a truly generic parser.
EDIT - The files seem to have been removed on the PHP London site; found the slides on Marcus' own site: Part 1 Part 2 Couldn't see the MP3 anywhere though