🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #84104

Re: [slrn] Saving the newsrc file

#84104
From: Stefan Ohlsson
Date: Fri, 07 Sep 2001 17:06
37 lines
2529 bytes
On Thu, 06 Sep 2001 12:25:26 -0500, J.B. Nicholson-Owens wrote:
>Thomas Schultz wrote:
>>The next version of slrn will have a special autosave feature.
>Using GROUPS_DIRTY in a macro would do the trick.  In a version of slrn 
>long since past, I recall doing something (which would now look) like
>
Great piece of code, works better than my attempt. It's exactly what I want.

>#v+
>private define First_Time = 1;
         ^
         This should be "variable".

>public define group_mode_hook ()
>{
>    if (andelse
>         { not (First_Time) }
>         { GROUPS_DIRTY })
>      call ("save_newsrc");
>    First_Time = 0;
>}
>#v-

>The First_Time you don't want to save the newsrc because you just 
>started slrn.  Every other time you enter group mode you want to save 
>the newsrc when there's something to save (when read article counts 
>changed).  I did this from group mode because at the time save_newsrc 
>was only available from group mode.
>
Regardless of where save_newsrc is available, it's a better time to save.
If you exit a group and forget slrn running for example, this would save it
and article_mode_hook won't.

/Stefan
-- 
[ Stefan Ohlsson ]  �  There will always be survivors - Robert A. Heinlein � []
Technical Details
Message-ID: <slrn9pi34b.1kaosfo.dal95son@bullshit.campus.mdh.se>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.uni2.dk!newscore.univie.ac.at!newsfeed.sunet.se!news01.sunet.se!news.mdh.se!dal95son
References: <slrn9pacq8.1k5ikmo.dal95son@bullshit.campus.mdh.se> <slrn9pa8t1.33e.tststs@starflower.tststs.ddns.org> <3B97B186.8060800@forestfield.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrn9pi34b.1kaosfo.dal95son@bullshit.campus.mdh.se>
Subject: Re: [slrn] Saving the newsrc file
Date: Fri, 07 Sep 2001 17:06:15 +0000
From: dal95son@mds.mdh.se (Stefan Ohlsson)
References: <slrn9pacq8.1k5ikmo.dal95son@bullshit.campus.mdh.se> <slrn9pa8t1.33e.tststs@starflower.tststs.ddns.org> <3B97B186.8060800@forestfield.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.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.uni2.dk!newscore.univie.ac.at!newsfeed.sunet.se!news01.sunet.se!news.mdh.se!dal95son
Newsgroups: news.software.readers
Organization: Knee Deep in the Hoopla
X-Warning: Junk / bulk email will be reported
X-Comment-To: J.B. Nicholson-Owens <jbn@forestfield.org>
X-FTN-To: J.B. Nicholson-Owens
Mail-Copies-To: never
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: slrn/0.9.6.2+ (AmigaOS)
NNTP-Posting-Host: dal95son.campus.mdh.se
X-Trace: 7 Sep 2001 18:06:15 +0100, dal95son.campus.mdh.se
Lines: 36