🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #46428

Re: Junk group (Was Re: HOW? Passing groups through)

#46428
From: Andrew Gierth
Date: Mon, 15 May 2000 00:00
73 lines
3923 bytes
>>>>> "Tim" == Tim Pennick <tpennick@axion.bt.co.uk> writes:

 Tim> I've been trying to find a way of doing this for ages as I want
 Tim> to pass on all the articles I don't carry on my live server (INN
 Tim> 2.1), to my test machine (INN 2.2.2) to test out filtering under
 Tim> load.  Having read your response I thought I'd give it a go, but
 Tim> without success.

 Tim> I set "wanttrash" to true, and aded "junk" to the newsfeeds
 Tim> entry feeding my test server, but I'm not seeing any extra
 Tim> articles offered.  (I ran "ctlinnd reload newsfeeds").  I'm not
 Tim> really clear on the use of "junk" as a newsgroup: In my
 Tim> newsfeeds file I have !junk in my "ME" entry.  Is this cancelled
 Tim> out if I put "junk" in the entry for the machine I want to feed
 Tim> the trash groups to?  Should the entry be "junk.*" rather than
 Tim> just "junk"?  Is it sufficient to set wanttrash to true in
 Tim> inn.conf, or do I have to recompile?  I still have
 Tim> "remembertrash set to true.  Is this significant?

To try and explain how it works:

"junk" is a pseudo-newsgroup which is used for articles that don't
match any newsgroup listed in the active file, or which match 'j'
newsgroups.

If wanttrash is false, then articles which match no group in active
are rejected and not stored, so the junk group isn't used unless you
have 'j' groups (or someone posts directly to it, in which case it
behaves like a normal group). The junk group must always exist though
(innd won't start if it is missing, and will crash if you somehow
manage to remove it).

If wanttrash is true, then articles which match no group in active are
treated exactly as though they matched the junk group. They get logged
with 'j' entries in the news log, so you can check that they're being
accepted and what feeds they're being sent to by looking there.

For INN 2.x you don't need to recompile to change this, for 1.x it's
a compile-time flag.

Despite the names, "wanttrash" and "remembertrash" have NOTHING to do
with each other. The first should have been called "wantjunk" instead,
IMO.

As for newsfeeds entries: in newsfeeds, "junk" (named exactly that, no
dots) is treated exactly the same as any other newsgroup. In most cases
you don't want to feed it out, so it's common to see "*,!junk,!control*"
as a default subscription. Note that "*" matches "junk".

If you specify newsgroup patterns in the ME entry, then they behave
simply as though they are prefixed to all the individual site
entries. For example, if you have:

ME:*,!junk,!control*::

siteA:!alt.*:...
siteB:junk:...
siteC:*:...

then that is equivalent to:

siteA:*,!junk,!control*,!alt.*:...
siteB:*,!junk,!control*,junk:...
siteC:*,!junk,!control*,*:...  (which is exactly the same as siteC:*:...)

When a newsgroup is matched against the site subscription, it's the
last match that wins. So in this example siteB and siteC would get fed
the junk group and siteA would not.

-- 
Andrew.

Technical Details
Message-ID: <87og67g7n9.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!not-for-mail
References: <87og6ao551.fsf@erlenstar.demon.co.uk> <8fp2la$s54$1@pheidippides.axion.bt.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <87og67g7n9.fsf@erlenstar.demon.co.uk>
Subject: Re: Junk group (Was Re: HOW? Passing groups through)
Date: Mon, 15 May 2000 00:00:00 +0000
From: Andrew Gierth <andrew@erlenstar.demon.co.uk>
References: <87og6ao551.fsf@erlenstar.demon.co.uk> <8fp2la$s54$1@pheidippides.axion.bt.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!not-for-mail
X-Deja-AN: 623648269
X-Mayan-Date: Long count = 12.19.7.3.15; tzolkin = 1 Men; haab = 18 Uo
X-Complaints-To: andrew@erlenstar.demon.co.uk
Organization: disorganised
X-Attribution: AG
X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29
X-P-Persistent-Headers: are a bad idea.
Newsgroups: news.software.nntp
X-Post-Filter: postfilter v0.6 alpha