🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #51829

Re: Reading usenet archives

#51829
From: Jeremy
Date: Sat, 14 Apr 2001 23:57
21 lines
1552 bytes
those who know me have no need of my name <not-a-real-address@usa.net> wrote:

>> It doesn't look like your archive has anything consistent (ie, machine
>> parsable) to tell where one message stops and another begins.
> 
> the two articles both had the path entry first.  i don't expect that 
> to hold though.

No, it won't; header order can vary, and Path is not always first.
Even if server-generated, DNEWS in particular does not put Path first;
and of course headers can also be client-generated, in which case they
can be in any order.

You'd basically have to write a script that looks for a blank line
followed by something that "looks like" news headers, and then take
that as the start of a new article.  And then go back and fix anything
that it fails to parse properly.

-- 
Jeremy  |  jeremy@exit109.com
Technical Details
Message-ID: <987292631.85806@news.netscum.dk>
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!supernews.google.com!sn-xit-02!supernews.com!saloon!newsbastard
References: <MhMB6.2427$482.12589@newsfeeds.bigpond.com> <987261616.891405@news.netscum.dk> <tdh2mq8upigd00@news.supernews.com>

Show Full Headers
Complete Article Headers
Message-ID: <987292631.85806@news.netscum.dk>
Subject: Re: Reading usenet archives
Date: Sat, 14 Apr 2001 23:57:11 +0000
From: Jeremy <jeremy@exit109.com>
References: <MhMB6.2427$482.12589@newsfeeds.bigpond.com> <987261616.891405@news.netscum.dk> <tdh2mq8upigd00@news.supernews.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!supernews.google.com!sn-xit-02!supernews.com!saloon!newsbastard
Newsgroups: news.software.nntp
Organization: There Is No Organization
Lines: 20
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
X-Meow: Meow