🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Christiaan Keet Wed, 28 Jun 2000 00:00
slrn and marking articles
#62804
Author: Christiaan Keet
Date: Wed, 28 Jun 2000 00:00
6 lines
926 bytes
Is there a way to easily mark a range of articles for download with
slrn other than sitting there for long minutes keeping '#' depressed?

- Christiaan

Re: slrn and marking articles
#62856
Author: J.B. Nicholson-Owens
Date: Fri, 30 Jun 2000 00:00
50 lines
2367 bytes
Christiaan Keet wrote:
> Is there a way to easily mark a range of articles for download with
> slrn other than sitting there for long minutes keeping '#' depressed?

I've got a macro that will let you put down one (or more) numeric tags and
do whatever you want to the articles between them (including the tagged
articles).  You could do something like this:

  % Load the macro into slrn with your slrnrc.
  interpret "by_the_numbers.sl"

Apply some numbers to the articles (or article range) you wish to save then
run some macro that might look like the following:

  % Use the macro in slrn with some S-Lang code.

  variable my_fp = fopen ("some_file", "a+");

  if (my_fp == NULL)
     verror ("Couldn\'t open file: %s", errno_string (errno));

  define my_save_function ()
  {
     if (fputs (article_as_string (), my_fp) == -1)
       verror ("Couldn\'t write to file: %s", errno_string (errno));
  }

  % Typically you'll use ONE of the following functions.  Execute the
  % function:

  % on each tagged article.
  By_The_Numbers->on_tags_do (&my_save_function);

  % between each pair of tagged articles.
  By_The_Numbers->between_tags_do (&my_save_function);

  % on each tagged article for articles tagged 5 to 9.
  () = By_The_Numbers->eval_between (5, 9, &my_save_function);

  % from tag 5 to the highest tagged article.
  () = By_The_Numbers->eval_between (5, &my_save_function);

  if (fclose (my_fp) == -1)
     verror ("Couldn\'t close file: %s", errno_string (errno));

Until I get a webpage with my macros on it I'll e-mail you a copy of
by_the_numbers.sl if you're interested.  Documentation for the macro is in
the macro file.

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