🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #9159

Re: Newsgroup messages -> Offline reading

#9159
From: Steven King, Software Archaeolog...
Date: Mon, 23 May 1994 15:48
35 lines
2618 bytes
driscoll@interaccess.com (Harold A. Driscoll) publicly declared:
>In article <Cq8AAr.L61@ritz.mordor.com> w2jc@ritz.mordor.com (Jim Cooper) writes:
>>Is there a way to recover the mail after the FIRST time?
>
>Yes, but.
>
>[snip]
>
>With 20-20 hindsight, since uqwk is impractical to use without shell scripts 
>which invoke it (and zip or unzip), it is unfortunate that the default 
>behavior is not look-but-don't-touch.  Sigh.

On my BBS I wrote the 'pack' and 'unpack' commands as an interface
to uqwk.  The 'pack' command copies /usr/spool/mail/<USER> and
$HOME/.newsrc to a backup directory before calling uqwk.  It also
performs some sanity checks to try to avoid users packing 10 Meg of news
when they don't mean to.  (For any newsgroups with more than 50 unread
articles the user is asked whether to pack them all, pack only the last
50, or pack none and perform a 'catch up' on the group.)  Another nicety
is that it estimates the download time and gives the user the option to
abort the download, or to delay downloading to a later time.

At any time before doing another 'pack' the user can type "pack restore"
and have the backup mail spool appended to /usr/spool/mail/<USER> and
have the .newsrc file copied back.

Perl code for these subroutines is available on request.  You won't be
able to run it directly (it relies on some other subroutines in the BBS)
but you should be able to glean the mechanism for your own purposes.
It's not that tough, really.

-- 
----------------------------------------------<Steven King, king@cig.mot.com>--
If all you do in life are important things, then you'll never have any
fun -- unless having fun is an important thing to you.
Technical Details
Message-ID: <2rqj94$nvb@delphinium.cig.mot.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!hookup!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!pipex!uknet!EU.net!uunet!ftpbox!mothost!delphinium.cig.mot.com!wildebeest!king
References: <Cq8AAr.L61@ritz.mordor.com> <driscoll.85.03010A96@interaccess.com>

Show Full Headers
Complete Article Headers
Message-ID: <2rqj94$nvb@delphinium.cig.mot.com>
Subject: Re: Newsgroup messages -> Offline reading
Date: Mon, 23 May 1994 15:48:52 +0000
From: king@wildebeest.cig.mot.com (Steven King, Software Archaeologist)
References: <Cq8AAr.L61@ritz.mordor.com> <driscoll.85.03010A96@interaccess.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!hookup!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!pipex!uknet!EU.net!uunet!ftpbox!mothost!delphinium.cig.mot.com!wildebeest!king
Newsgroups: news.software.readers
Organization: Motorola Cellular Infrastructure Group
Lines: 35
Reply-To: king@wildebeest.cig.mot.com
NNTP-Posting-Host: wildebeest.rtsg.mot.com