From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/36471 Path: main.gmane.org!not-for-mail From: David Z Maze Newsgroups: gmane.emacs.gnus.general Subject: Re: Different content types with nnweb? Date: 27 May 2001 16:47:56 -0400 Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035172050 8777 80.91.224.250 (21 Oct 2002 03:47:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:47:30 +0000 (UTC) Return-Path: Original-Received: (qmail 19087 invoked by alias); 27 May 2001 20:48:01 -0000 Original-Received: (qmail 19082 invoked from network); 27 May 2001 20:48:01 -0000 Original-Received: from pacific-carrier-annex.mit.edu (18.7.21.83) by gnus.org with SMTP; 27 May 2001 20:48:01 -0000 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by pacific-carrier-annex.mit.edu (8.9.2/8.9.2) with ESMTP id QAA22058 for ; Sun, 27 May 2001 16:47:58 -0400 (EDT) Original-Received: from melbourne-city-street.mit.edu (MELBOURNE-CITY-STREET.MIT.EDU [18.7.21.86]) by grand-central-station.mit.edu (8.9.2/8.9.2) with ESMTP id QAA12484; Sun, 27 May 2001 16:47:57 -0400 (EDT) Original-Received: from indiana.mit.edu (INDIANA.MIT.EDU [18.18.1.138]) by melbourne-city-street.mit.edu (8.9.2/8.9.2) with ESMTP id QAA05804; Sun, 27 May 2001 16:47:57 -0400 (EDT) Original-To: ding@gnus.org In-Reply-To: (Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "27 May 2001 22:38:05 +0200") User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.1 (Arches) X-Attribution: DZM Original-Lines: 40 Xref: main.gmane.org gmane.emacs.gnus.general:36471 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:36471 Kai Großjohann writes: Kai> On 27 May 2001, David Z. Maze wrote: DZM> What I'd like to do for a first pass is to read in the page DZM> containing all of the traffic for a particular bug, slap some DZM> headers on to it, and just have Gnus display it as an HTML page. If DZM> I put "Content-Type: text/html" at the front of the article, though, DZM> Gnus seems to just ignore it; the body is just displayed as DZM> (unformatted) HTML. Is there some trick to making this work? Kai> Kai> Make sure it's in the header, not the body. Also you will need Kai> `Mime-Version: 1.0', I think. Hm. And if it isn't ascii, you need a Kai> charset declaration, too. But maybe you can extract that from the Kai> HTML generated by the Debian thingy. Kai> Kai> To summarize: Kai> Kai> Content-type: text/html; charset=utf-8 Kai> Mime-Version: 1.0 Kai> Content-transfer-encoding: 8bit Aah, excellent. (I didn't have Mime-Version or c-t-e before.) Now I get, well, somewhat ugly w3-ified HTML, but this is probably a step up over plain text. DZM> (And what I'd *really* like to do is translate the page into DZM> something along the lines of a normal digest. Are there any DZM> pointers as to the format I should use for this? [Didn't gnus.org DZM> used to have links to useful RFCs somewhere?] Can I co-opt mml, DZM> create an mml document from the HTML page, and then translate that DZM> into something viewable as an article?) Kai> Kai> Hm. There are different formats. But surely, maybe MIME would be Kai> best. I guess you can use mml-generate-mime for MML->MIME conversion. Okay, I'll look into both of those. Thanks! -- David Maze dmaze@mit.edu http://www.mit.edu/~dmaze/ "Theoretical politics is interesting. Politicking should be illegal." -- Abra Mitchell