🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #177381

Re: What's better than Google Groups?

#177381
From: Alan Connor
Date: Sat, 10 Dec 2005 02:52
123 lines
5476 bytes
On news.software.readers, in
<1134159954.210915.26870@g43g2000cwa.googlegroups.com>, "CFran"
wrote:

<snip>
>> Then run slrn/slrnpull (or any other offline nix newsreader)
>> from within the emulator and I'll write the script for you.
>>
>> I do not know Windows, and specifically nix emulators running
>> in the Windows environment, well enough to know whether you
>> could run a bash script that read files not found within its
>> filesystem. (or even if that is a sensible statement :-)
>>
>> If you were using a Windows newsreader, the NTFS partition
>> containing the local news cache would have to be mounted by
>> cygwin (I think). Theoretically possible. (I assume that the
>> nix kernel that comes with cygwin has been compiled with the
>> NTFS option/module. Be shocked if it wasn't.)
>
> NTFS paritions are already mounted. for example you find C:\ at
> /cygdrive/c/. lol of course cygwin reads/writes ntfs, mainly
> because it doesn't have to, it just has to rely on API calls or
> such (dunno about the details). it's just an app on top of an
> OS, so it doesn't have to do the partition reading.
>
>> But I have read a lot of stuff about weird problems with
>> cygwin that would never occur with a real linux OS, and so am
>> out of my depth there.
>
> yup, cygwin!=linux, and because of that using some stuff for
> linux won't always work easily on cygwin
>

In order to do what you want: Be notified of any responses
to your posts on any group (I'm assuming just direct responses)
You need a newsreader that will allow you to create your own
Message-ID's. All the good ones will.

Then the script is pretty basic. The last part of your MID will
be unique and unchanging. The script looks for it in the last
place in the References header. I'm using my own MID below.

#!/bin/bash

_TD=/top/directory/in/news/cache
_TS=/time/stamp/file
_RL=/reply/log

#for every file (post) that's newer than the timestamp file
#+which was updated the last time you ran the script

for _file in \
$(find $_TD -type f -newer $_TS)
do

# pull out 20 lines of context, before and after the Reference
#+header of any that have your MID in the right place and then
#+extract the headers that give you the name of the newsgroup,
#+who it is from, and what the subject is
#+40 lines should be big enough for any headers.

grep -C20  '^References: i3x9mdw@b29x3m\.invalid>$' \
| grep '^Xref:\|^From:\|^Subject' $_file >> /reply/log

# throw in a blank line afterwards for readability

echo

# close the loop

done

#print a line to seperate each run, and another
#+blank one after it

echo "-------------------------------"
echo

# update the timestamp file

touch  $_TS

#command here to open /reply/log in a seperate
#+window in Windows, assuming you are using a
#+Windows newsreader. If you are using Linux
#+I can fill this in with a command to open
#+it in a seperate xterm 

The output would look like this, if there were
only two new replies:

---------------------------------

From: Idiot Troll <noone@nowhere.invalid>
Subject: Re: What's better than Google Groups?
Xref: news.earthlink.net news.software.readers:226329

From: Santa Claus <234@foo.net>
Subject: Re: What's better than Google Groups?
Xref: news.earthlink.net news.software.readers:226329

----------------------------------

There's a lot of other ways it could be done, of course.

With slrn/slrnpull, the nearly complete seperation
of the local, caching newsserver and the newsreader
makes it easy.

#run slrnpull to upload my new posts and bring new
#+posts down from the server then run the script
#+above, then open slrn:

alias sp='slrnpull;/my/nifty/script;slrn'

Probably be better to write a complete wrapper
script.

Alan


-- 
URLs of possible interest in my headers.
Technical Details
Message-ID: <slrndpke7t.12q.i3x9mdw@b29x3m.invalid>
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!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread3.news.pas.earthlink.net.POSTED!65807237!not-for-mail
References: <1134047544.381537.141160@g43g2000cwa.googlegroups.com> <mO%lf.847$Tg2.721@newsread1.news.pas.earthlink.net> <1134074357.322194.147650@g43g2000cwa.googlegroups.com> <U81mf.873$Tg2.379@newsread1.news.pas.earthlink.net> <slrndph8p2.1ai.i3x9mdw@b29x3m.invalid> <1134093723.344047.31180@g47g2000cwa.googlegroups.com> <slrndpi8ot.200.i3x9mdw@b29x3m.invalid> <1134127937.186352.62990@g47g2000cwa.googlegroups.com> <slrndpis9f.49p.i3x9mdw@b29x3m.invalid> <1134159954.210915.26870@g43g2000cwa.googlegroups.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrndpke7t.12q.i3x9mdw@b29x3m.invalid>
Subject: Re: What's better than Google Groups?
Date: Sat, 10 Dec 2005 02:52:33 GMT
From: Alan Connor <i3x9mdw@j9n35c.invalid>
References: <1134047544.381537.141160@g43g2000cwa.googlegroups.com> <mO%lf.847$Tg2.721@newsread1.news.pas.earthlink.net> <1134074357.322194.147650@g43g2000cwa.googlegroups.com> <U81mf.873$Tg2.379@newsread1.news.pas.earthlink.net> <slrndph8p2.1ai.i3x9mdw@b29x3m.invalid> <1134093723.344047.31180@g47g2000cwa.googlegroups.com> <slrndpi8ot.200.i3x9mdw@b29x3m.invalid> <1134127937.186352.62990@g47g2000cwa.googlegroups.com> <slrndpis9f.49p.i3x9mdw@b29x3m.invalid> <1134159954.210915.26870@g43g2000cwa.googlegroups.com>
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!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread3.news.pas.earthlink.net.POSTED!65807237!not-for-mail
Newsgroups: news.software.readers
X-Homepage: http://home.earthlink.net/~alanconnor/
X-Fanclub: http://www.pearlgates.net/nanae/kooks/alanconnor.shtml
User-Agent: slrn/0.9.8.1 (Debian)
Lines: 123
NNTP-Posting-Host: 4.243.7.247
X-Complaints-To: abuse@earthlink.net
X-Trace: newsread3.news.pas.earthlink.net 1134183153 4.243.7.247 (Fri,
NNTP-Posting-Date: Fri, 09 Dec 2005 18:52:33 PST
Organization: EarthLink Inc. -- http://www.EarthLink.net