🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #217687

[SLRNPULL] Script for Marking Replies to Posts

#217687
From: Tom Newton
Date: Wed, 12 Mar 2008 19:50
54 lines
2060 bytes
For Linux/Unix runners.

This is pretty simple, but it works well. I use slrnpull's
scorefile just for killing articles.

This is my slrn scorefile's last entry:

[*]
Score:: 1000
References: <slrnftcbar.muh.tom@treeoflife.3v8l2x.net>
References: <slrnftgbmo.nps.tom@treeoflife.3v8l2x.net>
References: <slrnftgbup.oab.tom@treeoflife.3v8l2x.net>
....

I run slrnpull using a function (in my ~/.bashrc):

sp () 
{ 
    slrn-score.sh;
    slrnpull -d /var/spool/slrnpull -h newsserver.org --kill-log /var/spool/slrnpull/kill-log
}


This script below pulls out the slrn-generated Message-ID from my posts
before posting them, edits them as above, and appends them to my
slrn scorefile:

--------------
#!/bin/bash

# slrn-score.sh

for file in /var/spool/slrnpull/out.going/X*
do 
sed -n 's/\(^Message-ID: \)\(.*\)/References: \2/p' $file >> /home/tom/news/Score
done

exit 0

--------

So any replies to my posts are marked with  "!" and "1000".

This is useful on busy newsgroups.

Hope someone finds this helpful,

Tom


-- 
calhobbit (at)  |  The Truth will set you free:
gmail [DOT] com |  http://www.sethcenter.com
Technical Details
Message-ID: <slrnftgcva.opf.tom@treeoflife.3v8l2x.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!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeeder.dynfx.net!news.mb-net.net!open-news-network.org!aioe.org!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <slrnftgcva.opf.tom@treeoflife.3v8l2x.net>
Subject: [SLRNPULL] Script for Marking Replies to Posts
Date: Wed, 12 Mar 2008 19:50:05 +0000
From: Tom Newton <tom@server.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!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeeder.dynfx.net!news.mb-net.net!open-news-network.org!aioe.org!not-for-mail
Newsgroups: news.software.readers
Organization: Aioe.org NNTP Server
Lines: 54
Reply-To: tom@server.invalid
NNTP-Posting-Host: rZuTe0d7K+08sfgRl4wYDg.user.aioe.org
X-Complaints-To: abuse@aioe.org
User-Agent: slrn/0.9.8.1 (Linux)