🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #74926

[slrn] 0.9.7.0a patch for true offline reading, faster downloading, faster spool organization and more

#74926
From: jurriaan kalkman
Date: Sun, 01 Apr 2001 11:09
129 lines
6482 bytes
http://www.xs4all.nl/~thunder7

The patch has been updated to 0.9.7.0a.

The description is below. Please note that in order to convince Thomas
that (some of) these patches would be worth adding to slrn-0.9.7.1 (or
whatever newer version), I need more feedback. There are people
downloading it, but the number of reactions was very small. Only Rudy
deserves thanks so far :-)

Good luck,
Jurriaan

=====
One of the great things about open source software is the ability to change
things if you don't like them.

This patch is a cumulation of changes to slrn / slrnpull, which make it work
better for me.

The short version:
==================

patch the source
change slrnfeat.h to your liking, it's even commented.
compile and install

OK, you've read the docs, now get working.

The somewhat longer version:
============================

This patch adds functionality that is primarily focused to a user that has a
slow link to his ISP and is not often online. It allows you to use your link
effectively and do a lot of work without being online.

I'll introduce the new compile-time options in slrnfeat.h one by one.

SLRN_HAS_DELAY_BODY

with this option, slrn / slrnpull will allow you to fetch only headers, then
mark which bodies you want retrieved and retrieve those in a second pass. This
is like Agent for Windows does it. The file doc/README.bodies explains this in
greater detail.

SLRN_JWK_HACK

this option is for homegrown, specific hacks. I don't recommend you set this
unless you know what you are doing. That being said, it gives you:

- more frequent updates on the download statistics during download
- sorting "file (3/25)" and "file (20/25") correctly
- defaults to NO for processing MIME articles with metamail
- adds GNU to the os name in your posts (like GNU/Linux, not Linux)

SLRN_HAS_MULTI_PROCESS_PULL

This allows slrnpull to connect multiple times to the NNTP-server when
downloading.  Experiments have shown this results in a higher total download
rate. In the doc/ directory, there is a file README.multiprocess that explains
this.  NOTE: setting this option will use the system calls fork() and wait(),
which are usable on any unix I know, and on win32 if you use the cygwin32
compiler. If you are using another OS / another compiler, you are on your
own.

SLRN_HAS_KEEP_SCORE_ON_EXPIRE

This will evaluate the score of an article before expiring it.
If the score is higher than 0, the article will not be expired.
Once in a while, you may want to expire some articles anyway, then you may
use the command-line option --keep_score <n>, with n being the maximum score
that will be expired.

SLRN_HAS_GROUP_SUBDIR

slrnpull stores it's articles in files, one per article. If your groups grow,
so do the directories where the files reside. Once a directory has more than
a few 1000 entries, performance starts to drop on many types of filesystems.
This option allows the articles to be stored per 1000 in a subdirectory.
It helps for performance.

NOTE: this structure is not compatible with the original structure, but you
can upgrade an older spool dir to the newer format with this script:

  #!/bin/sh
  spooldir=/enter/your/spooldir/here
  cd $spooldir
  for group in `find . -type d | grep -v tofetch`
  do
     cd $group
     echo $group":"
     for i in `ls [0-9]*`
     do
        file=_`expr $i \% 1000`
        dir=_`expr $i \/ 1000`
        test -d $dir || ( mkdir $dir; echo -n $dir" ")
        mv $i $dir/$file
     done
     cd $spooldir
  done

If you use cygwin32, you have a chance to run this on win32 also. If not,
you're out of luck.

SLRN_HAS_TAB_COMPLETION

When saving articles to file, press <tab> to get the partially typed filename
completed. It doesn't work with directories, at the moment.

SLRN_HAS_MULTIPART_THREADING

tries to gather all parts of a multi-part binary in a single thread:

slrn 0.9.6.3 ** Press '?' for help, 'q' to quit. ** Server: /var/spool/newszilla/slrnpull/news
 1! - 10009:[mbrown4@cinc] 10 Ani Difranco - (Battery Park, NYC 6-20-98) - 02 - Fuel.mp3 (01/10)
 2! - 10009:[mbrown4@cinc] 10 Ani Difranco - (Battery Park, NYC 6-20-98) - 03 - Two Little Girls.mp3 (01/10)
 3! - 10009:[mbrown4@cinc] 11 Ani Difranco - (Battery Park, NYC 6-20-98) - 04 - Shy.mp3 (01/11)
 4! - 10009:[mbrown4@cinc]   ���Ani Difranco - (Battery Park, NYC 6-20-98) - 05 - Letter to a John.mp3 (1/6)
 5! - 10008:[mbrown4@cinc]    ��Ani Difranco - (Battery Park, NYC 6-20-98) - 05 - Letter to a John.mp3 (2/6)
 6! - 10008:[mbrown4@cinc]    ��Ani Difranco - (Battery Park, NYC 6-20-98) - 05 - Letter to a John.mp3 (3/6)
 7! - 10008:[mbrown4@cinc]    ��Ani Difranco - (Battery Park, NYC 6-20-98) - 05 - Letter to a John.mp3 (4/6)
 8! - 10008:[mbrown4@cinc]    ��Ani Difranco - (Battery Park, NYC 6-20-98) - 05 - Letter to a John.mp3 (5/6)
 9! -  6898:[mbrown4@cinc]    ��Ani Difranco - (Battery Park, NYC 6-20-98) - 05 - Letter to a John.mp3 (6/6)
10! - 10009:[mbrown4@cinc]  8 Ani Difranco - (Battery Park, NYC 6-20-98) - 06 - Pulse.mp3 (1/8)

-- 
I am Richard Stallman of Borg. Assimilation should be free!
GNU/Linux 2.4.2-ac28 SMP/ReiserFS 2x1743 bogomips load av: 0.00 0.00 0.00
Technical Details
Message-ID: <slrn9ce3cp.rk6._hate_spam_thunder7@middle.of.nowhere>
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!supernews.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!newsfeeds.belnet.be!news.belnet.be!transit.news.xs4all.nl!no_spam_here

Show Full Headers
Complete Article Headers
Message-ID: <slrn9ce3cp.rk6._hate_spam_thunder7@middle.of.nowhere>
Subject: [slrn] 0.9.7.0a patch for true offline reading, faster downloading, faster spool organization and more
Date: Sun, 01 Apr 2001 11:09:36 +0000
From: _hate_spam_thunder7@xs4all.nl (jurriaan kalkman)
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!supernews.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!newsfeeds.belnet.be!news.belnet.be!transit.news.xs4all.nl!no_spam_here
Newsgroups: news.software.readers
Organization: XS4ALL Internet BV
Lines: 128
NNTP-Posting-Host: rivierenland.xs4all.nl
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news1.xs4all.nl 986123376 8724 194.109.14.47 (1 Apr 2001 11:09:36 GMT)
X-Complaints-To: abuse@xs4all.nl
NNTP-Posting-Date: 1 Apr 2001 11:09:36 GMT
X-Face: b$-F+98,@$_I=*ODq'<K2(OA)qC&,(GP=z2^`4dwQwy&e;!|R?>")k9FH3?YC+%*kF\=<Rx"Hy2_eyMtnFSiO8
User-Agent: slrn/0.9.7.0-jwk (GNU/Linux)