🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #244124

Re: [slrn] how do I write a script or macro to..

#244124
From: W. Citoan
Date: Thu, 30 Dec 2010 17:34
30 lines
2694 bytes
Nomen Nescio wrote:
> 
>  I want to write a script or a macro, whichever is right to select
>  articles in a newsgroup I am viewing based on header content and then
>  save all the articles to a file and then do some process on it.
> 
>  For example suppose I am in news.software.readers and I want to
>  select all the articles having a Message-ID that doesn't match
>  googlegroups. Then I want to save all those articles in one file and
>  then invoke a shell script to process that file. Would anyone be
>  willing to give me some pointers in the right direction? I can write
>  the shell script, but I don't know s-lang or slrn and I'm not sure
>  where to get started.

The slrn macro page is a good starting point:
http://slrn.sourceforge.net/macros.html

You should also review other macros out there:
http://cvs.pld-linux.org/cgi-bin/cvsweb/slrn-pl/macros/

However, depending upon what you are actually trying to do, there is
another option.  You can use a local newsspool (via slrnpool or other
application) which will download the articles locally and then you can
use a shell script (or other language you are already familiar with). 
http://slrn.sourceforge.net/docs/slrnpull/README

- W. Citoan
-- 
We give up the fort when there's not a man left to defend.
-- [Captain] George Croghan
Technical Details
Message-ID: <slrnihpgl8.730.wcitoan@wcitoan-via.eternal-september.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!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
References: <dad9bab901b913626c8cddaa39e91da7@dizum.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnihpgl8.730.wcitoan@wcitoan-via.eternal-september.org>
Subject: Re: [slrn] how do I write a script or macro to..
Date: Thu, 30 Dec 2010 17:34:38 +0000
From: "W. Citoan" <wcitoan@NOSPAM-yahoo.com>
References: <dad9bab901b913626c8cddaa39e91da7@dizum.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!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: A noiseless patient Spider
Lines: 30
Injection-Date: Thu, 30 Dec 2010 17:34:38 +0000 (UTC)
Injection-Info: wcitoan-via.eternal-september.org;
 posting-host="R4VyyRdki+wIlTNrMSCCTA";
 logging-data="19546"; mail-complaints-to="abuse@eternal-september.org";
 posting-account="U2FsdGVkX1976rYcwrQ/g22bUCDiy9QL"
User-Agent: slrn/0.9.8.1 (Win32)
X-Antivirus-Status: Clean
X-Antivirus: avast! (VPS 101230-0, 12/30/2010), Outbound message
Cancel-Lock: sha1:Cam9fhQqtfXRLrim0ffJYAHaEaE=
X-Original-Bytes: 2507