Gnus development mailing list
 help / color / mirror / Atom feed
From: Jari Aalto <ssjaaa@uta.fi>
Cc: <ding@gnus.org>
Subject: [comp.emacs] DejaNews URLs (was: Shell directory tracking)
Date: 27 Oct 1998 09:37:29 +0200	[thread overview]
Message-ID: <ptr3e8a5ubq.fsf@olkikukka.i-have-a-misconfigured-system-so-shoot-me> (raw)


	I just noticed this interesting Article. Would it be possible to
	add this kind of functionality to Gnus or W3?

	jari

------- Start of forwarded message -------
From: Toby Speight <Toby.Speight@digitivity.com>
Newsgroups: comp.emacs
Subject: DejaNews URLs (was: Shell directory tracking)
Date: 22 Oct 1998 14:36:57 +0100
Organization: Digitivity, Inc. <URL:http://digitivity.com/>
Message-ID: <uhfwwk9ae.fsf_-_@delivery.ansa.co.uk>
References: <7016p9$4h7$1@camelot.ccs.neu.edu> <vaf7ly2x4cp.fsf@ramses.cs.uni-dortmund.de> <708mm5$a94$1@camelot.ccs.neu.edu> <vaf90i8byi9.fsf@ramses.cs.uni-dortmund.de>
Mail-Copies-To: never

Kai> Kai Grossjohann <URL:mailto:Kai.Grossjohann@CS.Uni-Dortmund.DE>

0> In <URL:news:vaf90i8byi9.fsf@ramses.cs.uni-dortmund.de>, Kai wrote:

Kai> <URL:http://www.dejanews.com/dnquery.xp?QRY=&DBS=1&ST=PS&defaultOp=OR
Kai> &LNG=ALL&format=terse&showsort=score&maxhits=100&subjects=tcsh
Kai> &groups=*emacs*&authors=&fromdate=&todate=>
Kai>
Kai> Try the above URL, result number 15 has the subject `tcsh completion'
Kai> and is from `Anonymous'.  That's what I was referring to.

It's more usual (and useful) to refer to news articles by Message-ID
(that's what Message-IDs are for!).  In this case, [1].  If you are
so attached to DejaNews, you could suggest [2] (though for some
reason this returns text/plain for something which is clearly a
message/rfc822).  Either of which is an unambiguous URL, not subject
to the same time-dependent changes as your directions above.  URLs
were designed exactly to remove the need for such descriptions.

[1] <URL:news:62h9l9$hm4@basement.replay.com>
[2] <URL:http://search.dejanews.com/msgid.xp?MID=%3C62h9l9$hm4@basement.replay.com%3E&fmt=raw>


ObEmacs:

;; works with Gnus 5.5 and W3 4.0pre23
;; I'm not actively maintaining this, so post fixes to Usenet

(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))))

(defun fetch-message-from-dejanews (message-id)
  "Fetch MESSAGE-ID from DejaNews archive."
  (interactive "sMessage-Id: ")
  (w3-fetch (concat "http://search.dejanews.com/msgid.xp?MID=%3C" message-id "%3E&fmt=raw"))
  (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 (require 'url-news) (error nil)))
       (url-format-news)))

------- End of forwarded message -------


             reply	other threads:[~1998-10-27  7:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-10-27  7:37 Jari Aalto [this message]
1998-11-07 17:05 ` 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=ptr3e8a5ubq.fsf@olkikukka.i-have-a-misconfigured-system-so-shoot-me \
    --to=ssjaaa@uta.fi \
    --cc=ding@gnus.org \
    /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).