Article View: news.software.nntp
Article #8716Re: message-id to article number
From: Jacques Jamain
Date: Sun, 23 Jun 1996 00:00
Date: Sun, 23 Jun 1996 00:00
54 lines
2923 bytes
2923 bytes
In article <4q4tts$4bn@bushwire.mira.net.au>, Mark Delany <markd@mira.net.au> wrote: >Brian Hernacki <bhern@netscape.com> writes: > >>Jacques Jamain wrote: >>> >>> Is there a way to obtain the article number from the message-id? >>> More generally, news servers seem to have extensions not described >>> in rfc977. >>> Where to find these specs and the nntp FAQ? >>> TIA. > >>try xpath. this looks like what you want: > >>xpath <4q3kka$8hv@newsource.ihug.co.nz> >>223 junk/1099478 > >Erm, I'd be a bit carful of this method as the returned path isn't >defined as including an article number (though most implementations do >return it that way). It would be interesting to know what, eg, DNEWS >does with an xpath request. > >I'm curious to know why the original poster wanted to determine this >info? > it's a bit intricate... I'm using a dial up connection to read offline newsgroups (souper/yarn for os/2) in a country where telco taxes are not very cheap. Souper retrieves news based on article number range and i find that sometimes there are "holes" in the article number range. With this technique articles in the holes will never be retrieved if by chance they appear later at the news server as the whole article range is marked as read after the retrieval (in fact i don't understand how an article number can be allocated without its head/body, but i'm a naive user...). Hoping that those articles will show at the server one day or an other i decided to retrieve the articles with the NEWNEWS command that gives articles received by the server since the time and date you specified, no one vanishing! NEWNEWS returns a list of <message_id> and to reuse the main line of the soup reader, i find convenient to have a mechanism converting the <message_id> to article_number. STAT, ARTICLE, HEAD, BODY are supposed to return both according to RFC 977; my ISP news server doesn't and also some others i can have access to, hence my post. If i'm right in thinking that newnews is better that a retrieval by range, this conversion will also make the process of doing selective (-telco taxes) retrieval among headers easier (lazy opinion d:). -- Jacques JAMAIN - jamain@ibm.net ... on the french riviera ...(sunny & windy)...
Technical Details
Message-ID:
<LMazxA3ibRmD091yn@ibm.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<6IIwxA3ibt7C090yn@ibm.net> <31C585E1.7CB8@netscape.com>Show Full Headers
Complete Article Headers
Message-ID: <LMazxA3ibRmD091yn@ibm.net> Subject: Re: message-id to article number Date: Sun, 23 Jun 1996 00:00:00 +0000 From: jamain@ibm.net (Jacques Jamain) References: <6IIwxA3ibt7C090yn@ibm.net> <31C585E1.7CB8@netscape.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 161736715 Distribution: inet Content-type: text/plain; charset=ISO-8859-1 Mime-version: 1.0 Newsgroups: news.software.nntp