🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #44823

Re: slrn Win95: How to mark all groups as read?

#44823
From: Dawn Owens-Nicholson
Date: Wed, 25 Nov 1998 00:00
41 lines
1994 bytes
If you tried to execute the macro I posted, you probably noticed the
variable "starting_group" won't work if spelled "starting_newsgroup". Here's
a correct version--thanks for pointing this out, Mike!  Someone else wanted
to use this without quitting to group mode, so it's been split up.  Enjoy.

   define catchup_all_groups ()
   {
      !if (is_group_mode ()) return ();

      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.");
   }

   define my_quit ()
   {
      EXIT_BLOCK { call ("quit"); }

      !if (is_group_mode ()) return ();          % in case you bind this in
                                                 % article mode.
      catchup_all_groups ();
   }

Technical Details
Message-ID: <slrn75mvsd.bri.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
References: <AHY52.6632$DF6.197171@tor-nn1.netcom.ca> <slrn75llf3.a34.bluemoon@ux6.cso.uiuc.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn75mvsd.bri.bluemoon@ux6.cso.uiuc.edu>
Subject: Re: slrn Win95: How to mark all groups as read?
Date: Wed, 25 Nov 1998 00:00:00 +0000
From: bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson)
References: <AHY52.6632$DF6.197171@tor-nn1.netcom.ca> <slrn75llf3.a34.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: 415401953
Organization: University of Illinois at Urbana-Champaign
User-Agent: slrn/0.9.5.4 (UNIX)
Newsgroups: news.software.readers