🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #45184

Re: [slrn] Catchup on all groups

#45184
From: Michael Ghens
Date: Sun, 06 Dec 1998 00:00
75 lines
3012 bytes
Tried it out. 

All I get is unknown S-lange error...

On 6 Dec 1998 00:26:30 GMT, Dawn Owens-Nicholson <bluemoon@ux6.cso.uiuc.edu>
 wrote:
>Michael Ghens wrote:
>> Is there a way to catch up on all groups (fresh start).
>
>Yes.
>
>   define catchup_all_groups ()
>   {
>      !if (is_group_mode ()) call ("quit");
>
>      variable
>        previous_newsgroup = "",
>        confirm_actions = get_variable_value ("confirm_actions"),
>        starting_newsgroup = current_newsgroup ();
>
>      if (starting_newsgroup == "") return ();   % nothing to do!
>
>      call ("bob");
>      do
>        {
>           previous_newsgroup = current_newsgroup ();
>           if (confirm_actions) set_input_chars ("y");
>           call ("catchup");
>        }
>      while (current_newsgroup () != previous_newsgroup);
>
>      while (current_newsgroup () != starting_newsgroup)
>        () = group_search (starting_newsgroup);
>
>      message ("All groups marked as read.");
>   }
>
>Save the above functions in a file called "catchup_all_groups.sl" where slrn
>will find it (check your slrn.rc for "macro_directory" and put it in one of
>those directories, perhaps the directory where the slrn executable is kept
>is good enough on Windows).  Next, add this to your slrn.rc:
>
>   interpret "catchup_all_groups.sl"
>   setkey group catchup_all_groups "\eC"
>   setkey article catchup_all_groups "\eC"
>
>If you also want to do this when you quit slrn, save this function to the
>same file:
>
>   define my_quit ()
>   {
>      EXIT_BLOCK { call ("quit"); }
>
>      !if (is_group_mode ()) return ();          % in case you bind this in
>                                                 % article mode.
>      catchup_all_groups ();
>   }
>
>and include the keybinding you want to use for this:
>
>   setkey group my_quit "q"
>   setkey article my_quit "q"
>
>Quit and/or restart slrn and ESC-C will mark all groups as read.


-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Michael Ghens                       Small Planet Connections
Internet: michael@spconnect.com     Santa Barbara, CA 
			            http://www.spconnect.com/~michael    
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Unix is user friendly. It's just selective about who its friends are.

Technical Details
Message-ID: <slrn76m1r1.c0j.michael@merlin.spconnect.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.mbox.zip!not-for-mail
References: <slrn76jc5s.5nk.michael@merlin.spconnect.com> <slrn76jjpj.8g.bluemoon@ux6.cso.uiuc.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn76m1r1.c0j.michael@merlin.spconnect.com>
Subject: Re: [slrn] Catchup on all groups
Date: Sun, 06 Dec 1998 00:00:00 +0000
From: michael@merlin.spconnect.com (Michael Ghens)
References: <slrn76jc5s.5nk.michael@merlin.spconnect.com> <slrn76jjpj.8g.bluemoon@ux6.cso.uiuc.edu>
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!not-for-mail
X-Deja-AN: 419425311
Organization: Small Planet Connections
Newsgroups: news.software.readers