On Wed, Mar 10, 2010 at 4:10 PM, M. G. Devour <mdevour@eskimo.com> wrote:
You might find http://www.well.com/user/barts/email/mimepart.txt to be useful.
Oh, boy... I have to look at it some more, but it looks like you've just *handed* me between 95-100% of what I'm trying to do!
THANK YOU!
You're welcome. Hope it works out. I just noticed that there's a potential additional bug with mimepart.txt and very new MIME messages -- there has been an extension to the MIME boundary-string specification to allow very long boundary strings to be split across multiple lines in the message header, which the MIME decoder is then supposed to paste back together before examining the message body. I've only seen this once in actual email, and many common email readers fail to deal with it, so you probably won't encounter it any time soon, but be advised.