[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MIME converted to plain text?
- To: "news1.coastalnet.com" <http://www.aol.com/~nospam>
- Subject: Re: MIME converted to plain text?
- From: http://dummy.us.eu.org/robert (Robert)
- Date: Wed, 10 Feb 1999 19:28:03 -0500
- Cc: http://www.cs.utk.edu/~moore
- In-Reply-To: <Dkyt2.1$http://www.news3.ispnews.com/~BP1.31>
- Keywords: text
- Newsgroups: comp.mail.mime
I do use metamail.  See
http://dummy.us.eu.org/robert/software/procmail/mime.shtml
I also use James R. Davis's html-to-ascii perl script.
I convert everything I can to ascii text.
 > From: http://www.cs.utk.edu/~moore (Keith Moore)
 > Date: Tue  Feb  2,  4:34pm
 >
 > > What would be the quickest way to convert a MIME message to plain text using
 > > PERL?
 > 
 > I dunno, but it may well be easier to use metamail or MH.
 > 
 > > Do all MIME messages the use HTML type, have a copy of the text in
 > > the Content:Text/plain section as well as in HTML?
 > 
 > no.
 > 
 > > Or do only some E-mail programs do this?
 > 
 > fortunately, only some do this.
 > (and the people who wrote them should be shot.)
 > 
 > > If so then I could just cut the HTML section and not try to convert it.
 > 
 > the way you determine this is by looking for a multipart/alternative part.
 > if you see a multipart/alternative you can choose any one of the sub-parts
 > that it encloses.
 > 
 > Keith