🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Lee Wed, 10 Apr 2002 12:40
INN-2.3.2 without a [synched] active file
#58078
Author: Lee
Date: Wed, 10 Apr 2002 12:40
25 lines
2019 bytes
Hi,

I've just got my grubby hands on a spare server, and I'm about to
install INN-2.3.2 on it as a feeder box using CNFS buffers + innfeed.

I don't really want the hassle of keeping an active file in sync, so I
had the intention of running it with the minimal one and 'wanttrash'
enabled. I understand the implication of this is that all of the
articles get thrown into the junk group for the purposes of article
storage. This I can live with.

One thing I'm not sure about when using this method is sending feeds.
I'll need to provide outgoing streams with innfeed, and I was
wondering if I would encounter problems filtering by group patterns if
I don't run an active file. Can anyone help?

I've already installed a reader box with 2.3.2, and I want to make my
feeder capable of running for long periods without too much
intervention. I'm also trying to compile a little HTML guide on
setting up simple feeder boxes based on what happens with this
install.

Best Regards,
Lee.
Re: INN-2.3.2 without a [synched] active file
#58085
Author: Russ Allbery
Date: Wed, 10 Apr 2002 16:14
29 lines
2234 bytes
Lee <chercp@hotmail.com> writes:

> One thing I'm not sure about when using this method is sending feeds.
> I'll need to provide outgoing streams with innfeed, and I was wondering
> if I would encounter problems filtering by group patterns if I don't run
> an active file. Can anyone help?

Yes, you will.  INN doesn't filter by group patterns if you're running
with wanttrash; you either feed the group "junk" or you don't.

I think Andrew Gierth posted a patch for this a while back that would let
INN do feed pattern matching even with wanttrash enabled, but it's not yet
been merged into INN.

> I've already installed a reader box with 2.3.2, and I want to make my
> feeder capable of running for long periods without too much
> intervention.

One possible option to consider is running actsync against the active file
available at <ftp://ftp.isc.org/pub/usenet/CONFIG/active>, although you
still will miss some hierarchies and right now we're a bit behind in
processing new requests.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: INN-2.3.2 without a [synched] active file
#58096
Author: Andrew Gierth
Date: Wed, 10 Apr 2002 19:01
103 lines
4689 bytes
>>>>> "Russ" == Russ Allbery <rra@stanford.edu> writes:

 Russ> I think Andrew Gierth posted a patch for this a while back that
 Russ> would let INN do feed pattern matching even with wanttrash
 Russ> enabled, but it's not yet been merged into INN.

this was against some 2.2.x version but you should get the general
idea. Set both "feedtrash" and "wanttrash" in inn.conf to make it
work.  You still need, as a minimum, 'control' and 'junk' groups (and
'to' if you have mergetogroups set). If you have lots of complex
feed patterns, then having an active file (even an inaccurate one)
may save you some CPU without actually affecting what gets fed.


diff -c -r1.1.1.3 -r1.1.1.3.2.1
*** include/innconf.h	2000/02/28 19:34:10	1.1.1.3
--- include/innconf.h	2000/03/20 06:58:22	1.1.1.3.2.1
***************
*** 320,326 ****
      { _CONF_NNRPPERLAUTH,			"",	2, 1 },
  #define _CONF_NNRPDPOSTPORT			"nnrpdpostport"
  #define CONF_VAR_NNRPDPOSTPORT			99
!     { _CONF_NNRPDPOSTPORT,			"",	2, 1 }
  };
! #define MAX_CONF_VAR 100
  
--- 320,329 ----
      { _CONF_NNRPPERLAUTH,			"",	2, 1 },
  #define _CONF_NNRPDPOSTPORT			"nnrpdpostport"
  #define CONF_VAR_NNRPDPOSTPORT			99
!     { _CONF_NNRPDPOSTPORT,			"",	2, 1 },
! #define _CONF_FEEDTRASH				"feedtrash"
! #define CONF_VAR_FEEDTRASH			100
!     { _CONF_FEEDTRASH,				"",	2, 0 }
  };
! #define MAX_CONF_VAR 101
  

diff -c -r1.1.1.4 -r1.1.1.4.2.1
*** include/libinn.h	2000/02/28 19:38:24	1.1.1.4
--- include/libinn.h	2000/03/20 06:58:22	1.1.1.4.2.1
***************
*** 100,105 ****
--- 100,106 ----
  	int verifycancels;	/* Verify cancels against article author */
  	int logcancelcomm;	/* Log "ctlinnd cancel" commands to syslog? */
  	int wanttrash;		/* Put unwanted articles in 'junk' */
+ 	int feedtrash;		/* Feed the junk group as though the groups really existed */
  	int remembertrash;	/* Put unwanted article ID's into history */
  	int linecountfuzz;	/* Check linecount and adjust of out by more */
  	int peertimeout;	/* How long peers can be inactive */

diff -c -r1.1.1.5 -r1.1.1.5.2.3
*** innd/art.c	2000/02/28 19:38:27	1.1.1.5
--- innd/art.c	2000/03/22 05:51:44	1.1.1.5.2.3
***************
*** 2390,2395 ****
--- 2450,2460 ----
  		 * would or would have had the group if it were created. */
  		ARTsendthegroup(*groups);
  		Accepted = TRUE;
+ 	    } else if (innconf->wanttrash && innconf->feedtrash) {
+ 		/* dont set Accepted in this case, because we may still end
+ 		 * up filing the article in the junk group. */
+ 		ARTsendthegroup(*groups);
+ 		NonExist = TRUE;
  	    } else
  		NonExist = TRUE;
  	    ARTpoisongroup(*groups);

diff -c -r1.1.1.4 -r1.1.1.4.2.1
*** lib/getconfig.c	2000/02/28 19:36:58	1.1.1.4
--- lib/getconfig.c	2000/03/20 06:58:24	1.1.1.4.2.1
***************
*** 193,198 ****
--- 193,199 ----
      innconf->verifycancels = FALSE;
      innconf->logcancelcomm = FALSE;
      innconf->wanttrash = FALSE;
+     innconf->feedtrash = FALSE;
      innconf->remembertrash = TRUE;
      innconf->linecountfuzz = 0;
      innconf->peertimeout = 1 * 60 * 60;
***************
*** 614,619 ****
--- 615,625 ----
  		TEST_CONFIG(CONF_VAR_WANTTRASH, bit);
  		if (!bit && boolval != -1) innconf->wanttrash = boolval;
  		SET_CONFIG(CONF_VAR_WANTTRASH);
+ 	    } else
+ 	    if (EQ(ConfigBuff,_CONF_FEEDTRASH)) {
+ 		TEST_CONFIG(CONF_VAR_FEEDTRASH, bit);
+ 		if (!bit && boolval != -1) innconf->feedtrash = boolval;
+ 		SET_CONFIG(CONF_VAR_FEEDTRASH);
  	    } else
  	    if (EQ(ConfigBuff,_CONF_REMEMBERTRASH)) {
  		TEST_CONFIG(CONF_VAR_REMEMBERTRASH, bit);



-- 
Andrew.
Re: INN-2.3.2 without a [synched] active file
#58112
Author: Lee
Date: Thu, 11 Apr 2002 09:25
24 lines
1973 bytes
On 10 Apr 2002 20:01:47 +0100, Andrew Gierth
<andrew@erlenstar.demon.co.uk> wrote:

>>>>>> "Russ" == Russ Allbery <rra@stanford.edu> writes:
>
> Russ> I think Andrew Gierth posted a patch for this a while back that
> Russ> would let INN do feed pattern matching even with wanttrash
> Russ> enabled, but it's not yet been merged into INN.
>
>this was against some 2.2.x version but you should get the general
>idea. Set both "feedtrash" and "wanttrash" in inn.conf to make it
>work.  You still need, as a minimum, 'control' and 'junk' groups (and
>'to' if you have mergetogroups set). If you have lots of complex
>feed patterns, then having an active file (even an inaccurate one)
>may save you some CPU without actually affecting what gets fed.
>

Thanks for the help guys :) I'll try that out and see how I get on
CPU-wise.

Regards,
Lee.

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