Surprised that nobody has suggested Tim Pierce's "unhtml.c". Works fine for me ; search for it with google.
First few lines of the source tell it all : /* * unhtml: parse a MIME multipart message and, if `multipart/alternative', * discard all but the `text/plain' part. * * This code is in the public domain except where noted otherwise. * * Tim Pierce <[EMAIL PROTECTED]> * 3 June 1999 */ Mike