🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #165688

Re: Fetching Message-ID's (was Re: [slrn] Not Showing Body)

#165688
From: Neil Woods
Date: Fri, 22 Apr 2005 09:21
30 lines
2340 bytes
begin  Blinky the Shark <no.spam@box.invalid> wrote:
> Neil Woods wrote:
>
>> Update: It works fine, with a minor tweak for the new google groups
>> interface (see below). You need another file, in addition to
>> get-by-mid.sl, both available here:
>
> I got that working, but I sure wish it would only pick up strings from
> the References header.  It also lists email addresses; the MID of the
> post I'm looking at when I invoke it; and, if the client provides an
> In-Reply-To header (which duplicates that post's MID, which isn't
> necessary anyway, since I'm *looking* at that message).

Yeah, it has a few shortcomings ;-)

It seems to work by doing a screen "scrape" of Message-ID like
regexps, and will only work on what is actually visible on the
screen. It worked well on the first article in this thread, for
example, which only contained the one (visible) MID. 

If you have all headers visible it will pick up all MID-like strings,
which will also include email addresses unfortunately -- I don't think
there is an easy way of distinguishing between the two.

It shouldn't be too difficult to tweak the code to also look at the
References header (even when not visible), for someone familiar with
slang (I'm not).  

-- 
Neil.
Technical Details
Message-ID: <8asmj2-c53.ln1@phun.phasmic.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <slrnd6fp65.lfq.no.spam@thurston.blinkynet.net> <0lblj2-t6g.ln1@ID-107770.user.individual.net> <bfjlj2-eii.ln1@ID-107770.user.individual.net> <874qdz8twc.fsf@phun.phasmic.org> <ls4mj2-ehb.ln1@phun.phasmic.org> <slrnd6gsna.25c.no.spam@thurston.blinkynet.net>

Show Full Headers
Complete Article Headers
Message-ID: <8asmj2-c53.ln1@phun.phasmic.org>
Subject: Re: Fetching Message-ID's (was Re: [slrn] Not Showing Body)
Date: Fri, 22 Apr 2005 10:21:44 +0100
From: Neil Woods <cnw+usenet@pobox.com>
References: <slrnd6fp65.lfq.no.spam@thurston.blinkynet.net> <0lblj2-t6g.ln1@ID-107770.user.individual.net> <bfjlj2-eii.ln1@ID-107770.user.individual.net> <874qdz8twc.fsf@phun.phasmic.org> <ls4mj2-ehb.ln1@phun.phasmic.org> <slrnd6gsna.25c.no.spam@thurston.blinkynet.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Lines: 30
X-Trace: individual.net 7jtljqTvB6gEXpWWY5mAlQtyKj9Z6mbXdgsd+VpDvks/Mv507F
X-Orig-Path: phun.phasmic.org!news
Mail-Copies-To: nobody
User-Agent: slrn/0.9.8.1 (FreeBSD)