From: Toby Speight <Toby.Speight@streapadair.freeserve.co.uk>
Subject: Re: Cannot use nnweb for dejanews
Date: 15 Jul 1999 19:36:16 +0000 [thread overview]
Message-ID: <uwvw1wvrj.fsf@lanber.cam.citrix.com> (raw)
In-Reply-To: Eric Marsden's message of "Thu, 15 Jul 1999 17:01:26 GMT"
ecm> Eric Marsden <URL:mailto:emarsden@mail.dotcom.fr>
>>>>> "rrh" == Raja R Harinath <harinath@cs.umn.edu> writes:
rrh> It would be nice if you could provide a "raw article" interface, so
rrh> that we don't have to go through the HTML interface baloney ;-)
0> In <URL:news:wzi673lvoeq.fsf@mail.dotcom.fr>, ecm wrote:
ecm> they do. You can retrieve the original text format of an article with
ecm> Dejanews ID <did> as
ecm>
ecm> <URL:http://www.deja.com/getdoc.xp?AN=<did>&fmt=text>
Or you can do it by Message-ID (useful for articles that have expired
from the server you're currently reading):
(defun fetch-message-from-dejanews (message-id)
"Fetch MESSAGE-ID from DejaNews archive."
(interactive "sMessage-Id: ")
(w3-fetch (format "http://www.deja.com/msgid.xp?MID=%%3C%s%%3E&fmt=raw"
(url-hexify-string message-id)))
(let ((gnus-article-buffer w3-last-buffer)
(inhibit-read-only t))
(gnus-article-highlight)))
(defun fetch-message-from-nntp (message-id)
(interactive "sMessage-Id: ")
;; can use either `gnus-request-article' or `nntp-request-article' here...
(and (nntp-request-article (concat "<" message-id ">"))
(eval-and-compile
(condition-case nil (mapcar 'require '(url url-news)) (error nil)))
(url-format-news)))
(defun fetch-message-intelligently (message-id)
"Fetch MESSAGE-ID."
(interactive "sMessage-Id: ")
(save-excursion
(or (fetch-message-from-nntp message-id)
(fetch-message-from-dejanews message-id))))
[Lars, if you want to add something based on this, go ahead]
next prev parent reply other threads:[~1999-07-15 19:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-07-15 0:44 Jake Colman
1999-07-15 16:17 ` Doug Bagley
1999-07-15 16:47 ` Raja R Harinath
1999-07-15 17:00 ` Eric Marsden
1999-07-15 19:36 ` Toby Speight [this message]
1999-08-27 18:50 ` Lars Magne Ingebrigtsen
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=uwvw1wvrj.fsf@lanber.cam.citrix.com \
--to=toby.speight@streapadair.freeserve.co.uk \
/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).