🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #71224

[slrn] patch to stop slrnpull from expiring articles with a score

#71224
From: jwk
Date: Mon, 29 Jan 2001 11:51
89 lines
4138 bytes
I've updated the patch at http://www.xs4all.nl/~thunder7 to include an
option into slrnpull to skip articles with a score when expiring.

Defaults to every score > 0, but you can instruct slrnpull on what score
to use using --keep_score <n>.

I'm updating the web-pages right now.

Good luck,
Jurriaan

The patch now does:

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
- canceling/superseding without the correct name after a warning
- 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.

Good luck,
Jurriaan
-- 
These sayee lo Grail-hoppers got too much time,
too much money. I had something like this network,
be making something bold tasty, me - no dupping.
	T4b in Tad Willams - Mountain of Black Glass
GNU/Linux 2.2.19pre7 SMP 2x1402 bogomips load av: 0.03 0.18 0.12
Technical Details
Message-ID: <slrn97am8j.2is._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-02!supernews.com!news.tele.dk!195.64.68.27!newsgate.cistron.nl!transit.news.xs4all.nl!_hate_spam_thunder7x

Show Full Headers
Complete Article Headers
Message-ID: <slrn97am8j.2is._hate_spam_thunder7@middle.of.nowhere>
Subject: [slrn] patch to stop slrnpull from expiring articles with a score
Date: Mon, 29 Jan 2001 11:51:26 +0000
From: _hate_spam_thunder7x@xs4all.nl (jwk)
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-02!supernews.com!news.tele.dk!195.64.68.27!newsgate.cistron.nl!transit.news.xs4all.nl!_hate_spam_thunder7x
Newsgroups: news.software.readers
Organization: XS4ALL Internet BV
Lines: 88
NNTP-Posting-Host: rivierenland.xs4all.nl
X-Trace: news1.xs4all.nl 980769086 18401 194.109.14.47 (29 Jan 2001 11:51:26 GMT)
X-Complaints-To: abuse@xs4all.nl
NNTP-Posting-Date: 29 Jan 2001 11:51:26 GMT
User-Agent: slrn/0.9.6.3 (GNU/Linux)