Article View: news.software.nntp
Article #58096Re: INN-2.3.2 without a [synched] active file
From: Andrew Gierth
Date: Wed, 10 Apr 2002 19:01
Date: Wed, 10 Apr 2002 19:01
103 lines
4689 bytes
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.
Technical Details
Message-ID:
<87n0wbe5t0.fsf@erlenstar.demon.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!sn-xit-01!supernews.com!news-spur.riddles.org.uk!newsmonsterReferences:
<3cb43005.14798899@news.london1.eu.level3.net> <yl662zledw.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <87n0wbe5t0.fsf@erlenstar.demon.co.uk> Subject: Re: INN-2.3.2 without a [synched] active file Date: Wed, 10 Apr 2002 19:01:47 +0000 From: Andrew Gierth <andrew@erlenstar.demon.co.uk> References: <3cb43005.14798899@news.london1.eu.level3.net> <yl662zledw.fsf@windlord.stanford.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!sn-xit-01!supernews.com!news-spur.riddles.org.uk!newsmonster Newsgroups: news.software.nntp Organization: disorganised Lines: 102 X-Mayan-Date: Long count = 12.19.9.2.10; tzolkin = 7 Oc; haab = 3 Pop X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29 X-Attribution: AG X-P-Persistent-Headers: are a bad idea. X-Newsreader: Gnus v5.5/Emacs 20.2 X-Complaints-To: abuse@news-spur.riddles.org.uk X-Post-Filter: postfilter v0.6 alpha