🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Pigdog of SF Bay Area Wed, 26 Jan 1994 08:28
[Q] Which newsreader will do THIS:
#7528
Author: Pigdog of SF Bay Area
Date: Wed, 26 Jan 1994 08:28
30 lines
2257 bytes

	I'm looking for a newsreader that will save all NEW, unread
articles in a particular group to a filename.  I need all posts, headers
included to simply be put one after another into a filename that I
give on the command line.  There can't be any input, because I'm going
to have all this done in a script file when I'm sleeping.  I believe that
tin will do this (though it may save it in its own special format, I'm
not sure) but tin won't allow you to specify only ONE group.

	Are there any newsreaders that will let me do this via the command
line?

Thanks from everyone in advance!

Ciao

-- 
+____________________________________________________________________________+
|    TOP 40 USENET NEWSGROUPS IN ORDER BY TRAFFIC VOLUME AS OF 12/05/93      |
|    ------------------------------------------------------------------      |
| +----- Note:  This is the *most* popular group in the WORLD.               |
| |     +-- Estimated total number of people who read the group, worldwide.  |
| |     |        +-- Recent traffic (kilobytes per month)                    |
| |     |        |                             +-- Name of group.            |
| V     V        V                             V                             |
|(1) 280000    23920.1               alt.binaries.pictures.erotica           |
|                                                                            |
|        This Reality Check brought to you by:   pigdog@netcom.com           |
+----------------------------------------------------------------------------+
Re: [Q] Which newsreader will do THIS:
#7529
Author: Adri Verhoef
Date: Wed, 26 Jan 1994 11:55
73 lines
2730 bytes
Subject: Automagically downloading articles via rn
Keywords: rn, UNIX

You want something like this:

% auto-rn this.news.group

The following scripts will help you.

----- cut here ------ BEGIN ----- auto-rn
:
#ident	"@(#)auto-rn	1.0	(a3)	15 aug 1992"

if [ $# != 1 ]
then
	echo "$0: No newsgroup specified."
	exit 1
fi

# If there are no unread articles, rn returns 0 exit status, else 1.
if rn -csq $1
then
	echo "No news in group $1."
else
	echo "Extracting news from group $1."
	KILLGLOBAL=%p/AUTO-RN-KILL rn -M -q -T $1 <<eof
yqq
eof
fi
----- cut here ------ END ----- auto-rn


In the file 'News/AUTO-RN-KILL' (if %p = $HOME/News) you put the following:

----- cut here ------ BEGIN ----- News/AUTO-RN-KILL
/^/s %C:j
----- cut here ------ END ------- News/AUTO-RN-KILL

In this way, articles will be saved in directory $HOME/News, and the
name of the saved file will be that of the newsgroup (%C).



How does 'auto-rn' work?
1) It checks the newsgroup if there are any articles (work to do).
2) It starts 'rn' to read and save the specified newsgroup.
3) It saves each unread article of that newsgroup into the savefile.
4) It marks all read articles as "read" by "junking" each one.
5) It doesn't enter more than one newsgroup per run.


$HOME/News/AUTO-RN-KILL is in fact a rn "KILL" file.


rn -c  : check for unread articles
rn -s  : suppress initial listing of newsgroups
rn -q  : suppress checking for new newsgroups
rn -M  : save articles in mailbox format
rn -T  : allow typeahead (i.c. "yqq")

Don't reformat the strings "yqq" and "eof" in the 'auto-rn' script.
"yqq"  : 'y' for "yes, read this newsgroup"
         'q' for "quit this newsgroup at the 'End of group...' prompt"
         'q' to leave rn


Note that the following environment variable may come in handy for long
'Path:' headers:
MBOXSAVER=%X/mbox.saver %A %P %c %a %B %C "%b" "From X %`date -u`"
(sh-syntax)


Adri
Re: [Q] Which newsreader will do THIS:
#7533
Author: iain.lea
Date: Wed, 26 Jan 1994 19:42
18 lines
1491 bytes
Pigdog of SF Bay Area (pigdog@netcom.com) wrote:
:
: I'm looking for a newsreader that will save all NEW, unread
: articles in a particular group to a filename.  I need all posts, headers
: included to simply be put one after another into a filename that I
: give on the command line.  There can't be any input, because I'm going
: to have all this done in a script file when I'm sleeping.  I believe that
: tin will do this (though it may save it in its own special format, I'm
: not sure) but tin won't allow you to specify only ONE group.

tin -c -S alt.sources

would save all the NEW articles in just alt.sources to ~/News/alt/sources
as numbered files ala news spool and then update (-c) your .newsrc as read,

-- 
iain.lea@erlm.siemens.de  +49-9131-7-43402
 'Raus aus dem Alltag, rein in die Kiste'
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads