🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #62099

Re: [slrn] A way to pack messages with slrnpull?

#62099
From: John E. Davis
Date: Fri, 02 Jun 2000 00:00
31 lines
1543 bytes
On 2 Jun 2000 15:59:52 GMT, Jyri Jokinen <arider@news.surffi.net>
wrote:
>This could be done whit s-lang, I'm sure, but how?

I am not sure how well this works in practice, nor do I believe that
you will be able to expire gzipped articles with slrnpull.  The
following code is untested and should be considered pseudo-code.

static variable New_Root_Dir = "/var/spool/news/news";

static define get_news_dir ()
{
   variable g = current_newsgroup ();
   % Convert, e.g., news.software.readers to news/software/readers
   g = strtrans (g, ".", "/");
   return New_Root_Dir + "/" + g;
}

public define article_mode_quit_hook ()
{
   () = system (sprintf ("gzip -d %s/[1-9]*.gz", get_news_dir ()));
}

public define article_mode_hook ()
{
   () = system (sprintf ("gzip %s/[1-9]*", get_news_dir ()));
}

--John

Technical Details
Message-ID: <slrn8jfp5d.jva.davis@aluche.mit.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: <slrn8jfm2v.a8m.arider@tulipunaruusu.arider.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrn8jfp5d.jva.davis@aluche.mit.edu>
Subject: Re: [slrn] A way to pack messages with slrnpull?
Date: Fri, 02 Jun 2000 00:00:00 +0000
From: davis@space.mit.edu (John E. Davis)
References: <slrn8jfm2v.a8m.arider@tulipunaruusu.arider.net>
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: 630282260
X-Trace: dreaderd 959964334 10888 18.75.2.45
Organization: Center for Space Research
User-Agent: slrn/0.9.6.3 (Linux)
Reply-To: davis@space.mit.edu
Newsgroups: news.software.readers