Thread View: news.software.readers
3 messages
3 total messages
Started by Jyri Jokinen
Fri, 02 Jun 2000 00:00
[slrn] A way to pack messages with slrnpull?
Author: Jyri Jokinen
Date: Fri, 02 Jun 2000 00:00
Date: Fri, 02 Jun 2000 00:00
15 lines
1224 bytes
1224 bytes
Just wondering.. I would like that the messages in my slrnpull-spool would be packed into .tar.gz packets when not accessed. Like, when I enter a newsgroup, slrn would uncompress a file witch contains all the messages. Then when I exit the group, it would compress it all back. Kindoff those offline QWK-Readers... like MultiMail. This could be done whit s-lang, I'm sure, but how? -- autumn rider - jyri jokinen - autumn rider at surffi net
Re: [slrn] A way to pack messages with slrnpull?
Author: John E. Davis
Date: Fri, 02 Jun 2000 00:00
Date: Fri, 02 Jun 2000 00:00
31 lines
1543 bytes
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
Re: [slrn] A way to pack messages with slrnpull?
Author: Keith
Date: Sat, 03 Jun 2000 00:00
Date: Sat, 03 Jun 2000 00:00
37 lines
1878 bytes
1878 bytes
On 2 Jun 2000 15:59:52 GMT, Jyri Jokinen <slrn8jfm2v.a8m.arider@tulipunaruusu.arider.net> wrote: >Just wondering.. I would like that the messages in my >slrnpull-spool would be packed into .tar.gz packets >when not accessed. You could easily do this with a script when starting slrn and could create a slang function to do this. sample script getslrn echo "Unpacking slrnpull" gunzip <path>\filename tar -xvf <path>\filename slrn tar cvf <path>\filename gzip -9 <path>\filename echo "bye" If you run slrnpull with cron then you *must* run a similar script and/or if you do it manually. -- Best Regards, Keith ------------------------------------------------------------------ "Netscape had what the government would consider a monopoly in the market for Internet browsers, until the great Satan, Microsoft, came along." M$ attorney John Warden, 20 October 1998 ------------------------------------------------------------------
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