Gnus development mailing list
 help / color / mirror / Atom feed
From: David Z Maze <dmaze@MIT.EDU>
Subject: Re: Different content types with nnweb?
Date: 27 May 2001 16:47:56 -0400	[thread overview]
Message-ID: <y68g0dqsemb.fsf@indiana.mit.edu> (raw)
In-Reply-To: <vaf4ru6o7de.fsf@lucy.cs.uni-dortmund.de> (Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "27 May 2001 22:38:05 +0200")

Kai Großjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE> 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



  reply	other threads:[~2001-05-27 20:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-27 20:30 David Z Maze
2001-05-27 20:38 ` Kai Großjohann
2001-05-27 20:47   ` David Z Maze [this message]
2001-05-27 20:52     ` Kai Großjohann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=y68g0dqsemb.fsf@indiana.mit.edu \
    --to=dmaze@mit.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).