🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #174918

[slrnpull] slrn macro to download new messages

#174918
From: Troy Piggins
Date: Wed, 12 Oct 2005 13:59
33 lines
2097 bytes
This may or may not be of use to anyone, or there may be a better way to
go about it.  I have just started using slrnpull again now I have a
bigger hard disk and can afford a bit of space for the spool.  Anyway,
just wrote a macro so that with one keypress within slrn's groups window
I can call slrnpull to download new articles, which I normally do as a
cronjob.

I created a file called my_macros.sl and put it in ~/.slrn/
This goes in there along with other macros I have written:

define slrnp ()
{
  () = system ("sudo /usr/local/bin/slrnpull -h my.isp's.news.server");
}


I put this in my ~/.slrnrc (in the relevant sections):

interpret "/home/troy/.slrn/my_macros.sl"
setkey group refresh_groups "\eG"  % Get new news from server
setkey group slrnp          "G"    % Tell server to download new news

So now I just hit G to pull down all new messages instantly.  Normally I
have the following cronjob:

0 7,12,16,20 * * * /usr/local/bin/slrnpull -h my.isp's.news.server

Hope someone finds it useful.  I do.

-- 
Troy Piggins
Where I live: 27 27 44 S 153 02 28 E
http://earth.google.com
Technical Details
Message-ID: <20051012234707@usenet.piggo.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!news1.optus.net.au!optus!news.uwa.edu.au!nntp.waia.asn.au!203.59.27.186.MISMATCH!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <20051012234707@usenet.piggo.com>
Subject: [slrnpull] slrn macro to download new messages
Date: Wed, 12 Oct 2005 13:59:59 +0000
From: Troy Piggins <usenet-0510@piggo.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!news1.optus.net.au!optus!news.uwa.edu.au!nntp.waia.asn.au!203.59.27.186.MISMATCH!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mail
Newsgroups: news.software.readers
Reply-To: usenet-0510@piggo.com
User-Agent: slrn/0.9.8.1/rt (Linux)
Lines: 33
NNTP-Posting-Host: 203.206.14.64
X-Trace: 1129125599 per-qv1-newsreader-01.iinet.net.au 16836 203.206.14.64