🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #11791

Re: How can I retrieve an article by Message-ID?

#11791
From: Wayne Davison
Date: Sat, 08 Oct 1994 10:47
34 lines
2034 bytes
According to Ron Newman <rnewman@media.mit.edu>:
> What command do I give to "trn" or "rn" to read an article
> given just a Message-ID?

Given a modern trn, you could use /<insert.id.here>/rHmessage-id:
to go to a specific message-id within the current group (it won't
find the id if it is in another group), but only if the article is
ahead of the current article numerically.  If the search fails you
would still have to type '?' <return> to search backward.

Or, you could use '$' to go to the end of the group and then do
the search to cover the whole group in one swell foop.  (I really
need to add an option to the search command to start at the top --
in trn 3.6 you will be able to use /id/trHmessage-id: for this.)

If you don't have a modern trn (version 3.5 is the latest) then
using Bill's form of the search command will work, but it is much
slower.

I'd recommend putting a macro into your .trnmac (or .rnmac) file
to prompt you for the id and automate the process:

*I	$/%"^JMessage id? "/rHmessage-id:^J

Typing *I would output a prompt for the id and use it to go to a
particular article, even if it is already-read (because of the 'r'
modifier).  (This only works while reading articles.)

Here's the slower form of the macro for rn and older trn's:

*I	$/^message-id: *%"^JMessage id? "/rh^J
-- 
Wayne Davison
davison@borland.com
Technical Details
Message-ID: <CxCon2.3xF@borland.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!decwrl!borland.com!davison
References: <1994Oct7.040710.20926@news.media.mit.edu>

Show Full Headers
Complete Article Headers
Message-ID: <CxCon2.3xF@borland.com>
Subject: Re: How can I retrieve an article by Message-ID?
Date: Sat, 8 Oct 1994 10:47:26 GMT
From: davison@borland.com (Wayne Davison)
References: <1994Oct7.040710.20926@news.media.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!decwrl!borland.com!davison
Newsgroups: news.software.readers
Organization: Borland International
Lines: 34