🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
7 messages
7 total messages Started by Michael Ghens Sat, 05 Dec 1998 00:00
[slrn] Catchup on all groups
#45111
Author: Michael Ghens
Date: Sat, 05 Dec 1998 00:00
8 lines
637 bytes
Is there a way to catch up on all groups (fresh start).

Just like catch up all articals

TIA
Michael

Re: [slrn] Catchup on all groups
#45168
Author: Dawn Owens-Nicholson
Date: Sun, 06 Dec 1998 00:00
60 lines
2421 bytes
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.

Re: [slrn] Catchup on all groups
#45184
Author: 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.

Re: [slrn] Catchup on all groups
#45208
Author: Dawn Owens-Nicholson
Date: Mon, 07 Dec 1998 00:00
29 lines
1751 bytes
Michael Ghens wrote:
> Tried it out. 
> 
> All I get is unknown S-lange error...

Did you run it under a slrn compiled with the latest S-Lang snapshot? If
not, or if using the latest S-Lang snapshot is not an option, you could
change the following line:

>      if (starting_newsgroup == "") return ();   % nothing to do!

       !if (strlen (starting_newsgroup)) return ();   % nothing to do!

I'm not sure if you will need to change more than that, but the following
while() might not work in earlier S-Langs, I don't recall right now.

>      while (current_newsgroup () != previous_newsgroup);

       while (not (case (current_newsgroup (), previous_newsgroup)));

>      while (current_newsgroup () != starting_newsgroup)

       while (not (case (current_newsgroup (), previous_newsgroup)));

And try running it again.  I highly suggest using the latest 1.3 snapshot
(available from ftp://space.mit.edu/pub/davis/slang/snapshots/) until the
official 1.3 is released.  Hope this helps!

Re: [slrn] Catchup on all groups
#45217
Author: Mike Ching
Date: Mon, 07 Dec 1998 00:00
12 lines
959 bytes
On 5 Dec 1998 22:16:28 GMT, Michael Ghens <michael@merlin.spconnect.com> wrote:
>Is there a way to catch up on all groups (fresh start).
>
>Just like catch up all articals
>
>TIA
>Michael

I just hit 'c' repeatedly in group mode. It doesn't take long since I don't
subscribe to very many groups.

Re: [slrn] Catchup on all groups
#45234
Author: Michael Ghens
Date: Mon, 07 Dec 1998 00:00
14 lines
1111 bytes
Works like a charm, Thanks!

On 7 Dec 1998 01:12:22 GMT, Dawn Owens-Nicholson <bluemoon@ux6.cso.uiuc.edu> 
wrote:
>Michael Ghens wrote:
>> Tried it out. 
>> 
>> All I get is unknown S-lange error...
>
>Did you run it under a slrn compiled with the latest S-Lang snapshot? If
>not, or if using the latest S-Lang snapshot is not an option, you could
>change the following line:

Re: [slrn] Catchup on all groups
#45330
Author: tony summerfelt
Date: Sat, 12 Dec 1998 00:00
23 lines
1457 bytes
On 7 Dec 1998 00:09:24 GMT, Mike Ching wrote:

> >Is there a way to catch up on all groups (fresh start).

> >Just like catch up all articals

> I just hit 'c' repeatedly in group mode. It doesn't take long since I don't
> subscribe to very many groups.

or you if you don't use the s-lang function just posted you could to to the
end of the the articles in a group and use `C' (shift-c)

-- 
.t
*-------------------------------------------------------------------------
| origin: ...the vented spleen kingston on (613-544-9332) 1:249/139 
|
| `you want a toe? i can get you a toe'
|
| take myspleen out to reply via email
*-------------------------------------

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