🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Michael Grimm Tue, 12 Dec 2006 19:33
wildmat expressions in storage.conf
#74580
Author: Michael Grimm
Date: Tue, 12 Dec 2006 19:33
38 lines
2036 bytes
Hi -

I am referring to Jeffrey's posting <dq9ipf$lis$1@puck.litech.org>
earlier this year where he recommended a newsgroup line in storage.conf
like:

| newsgroups: !*

I wonder if I missed a new development because man storage.conf tells me
regarding the newsgroup line that:

| ``!'' cannot  be  used,  however.

What I want to achieve is the following (INN 2.4.2 at Debian Linux):

| method cnfs {
|         newsgroups: de.*,!de.UNWANTED
|         class: 1
|         options: DE
| }
|
| method cnfs {
|         newsgroups: *
|         class: 2
|         options: REST
| }

Before screwing my running server I'd like to ask if that will work?

Or will a "newsgroup: de.*,@de.UNWANTED" do the trick? I do have to
admit that I do not understand what is meant by "Poison wildmat
expressions ..." in storage.conf, especially if that will work in the
scenario outlined above.

Thanks,
Michael
-- 
to let
Re: wildmat expressions in storage.conf
#74582
Author: F. Senault
Date: Tue, 12 Dec 2006 20:12
31 lines
2424 bytes
Le 12 décembre à 20:33, Michael Grimm a écrit :

Note : I'm not an expert with storage methods, so don't take my word for 
       granted.  I just hope that someone will smack me on the head with 
       the docs if I get it wrong...  :)

> Before screwing my running server I'd like to ask if that will work?

I'd say no.
 
> Or will a "newsgroup: de.*,@de.UNWANTED" do the trick? 

According to the docs, yes, with the caveat below.

> I do have to
> admit that I do not understand what is meant by "Poison wildmat
> expressions ..." in storage.conf, especially if that will work in the
> scenario outlined above.

Well, the poison wildmat is different from the negation in the case of a
crossposting.  This means, in this case, that the article will not match
the storage clause if _any_ group in the newsgroups line matches.  A
simple exclusion (when it's useable) mean that it doesn't match if _all_
the groups are unwanted.

Fred
-- 
Like that means something                            And oh so sick I am
And maybe I don't have a choice             And maybe that is all I have
And maybe this is a cry for help
                                   (Nine inch Nails, I Do not Want This)
Re: wildmat expressions in storage.conf
#74584
Author: Michael Grimm
Date: Wed, 13 Dec 2006 11:24
32 lines
2340 bytes
F. Senault <fred@lacave.net> wrote:
> Le 12 décembre à 20:33, Michael Grimm a écrit :

>> Or will a "newsgroup: de.*,@de.UNWANTED" do the trick? 
>
> According to the docs, yes, with the caveat below.
>
>> I do have to
>> admit that I do not understand what is meant by "Poison wildmat
>> expressions ..." in storage.conf, especially if that will work in the
>> scenario outlined above.
>
> Well, the poison wildmat is different from the negation in the case of a
> crossposting.  This means, in this case, that the article will not match
> the storage clause if _any_ group in the newsgroups line matches.  A
> simple exclusion (when it's useable) mean that it doesn't match if _all_
> the groups are unwanted.

Lets assume three different newsgroups header scenarios with a 
"newsgroup: de.*,@de.UNWANTED" clause in storage.conf:

1. Newsgroups: de.wanted
2. Newsgroups: de.wanted,de.UNWANTED
3. Newsgroups: de.UNWANTED

Does that poison wildmat approach mean that only articles with headers
like in 1. will match the storage clause and those in 2. and 3. won't?

Regards,
Michael
-- 
intentionally left blank
Re: wildmat expressions in storage.conf
#74585
Author: Iulius
Date: Wed, 13 Dec 2006 12:49
24 lines
1990 bytes
Le jour des Ides de décembre, en réponse à Michael Grimm :
> Lets assume three different newsgroups header scenarios with a 
> "newsgroup: de.*,@de.UNWANTED" clause in storage.conf:
            ^^
newsgroups


> 1. Newsgroups: de.wanted
> 2. Newsgroups: de.wanted,de.UNWANTED
> 3. Newsgroups: de.UNWANTED
> 
> Does that poison wildmat approach mean that only articles with headers
> like in 1. will match the storage clause and those in 2. and 3. won't?

Yes.

http://www.die.net/doc/linux/man/man5/storage.conf.5.html

-- 
Iulius

« -- Heureusement, nous aurons bientôt le TGV !
   -- C'est quoi le tégévé ?
   -- C'est le Transport Gaulois Véloce » (Astérix)
Re: wildmat expressions in storage.conf
#74602
Author: Michael Grimm
Date: Wed, 20 Dec 2006 18:31
22 lines
1964 bytes
Iulius <iulius@nom-de-mon-site.com.invalid> wrote:
> Le jour des Ides de décembre, en réponse à Michael Grimm :

>> Lets assume three different newsgroups header scenarios with a 
>> "newsgroup: de.*,@de.UNWANTED" clause in storage.conf:
[...]
>> 1. Newsgroups: de.wanted
>> 2. Newsgroups: de.wanted,de.UNWANTED
>> 3. Newsgroups: de.UNWANTED
>> 
>> Does that poison wildmat approach mean that only articles with headers
>> like in 1. will match the storage clause and those in 2. and 3. won't?
>
> Yes.

Thanks. I set up my storage clause as outlined above and it works the 
way both of you anticipated (checked with showtoken).

Regrads,
Michael
-- 
to let
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