Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

wildmat expressions in storage.conf

0 views
Skip to first unread message

Michael Grimm

unread,
Dec 12, 2006, 2:33:46 PM12/12/06
to
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

F. Senault

unread,
Dec 12, 2006, 3:12:14 PM12/12/06
to
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)

Michael Grimm

unread,
Dec 13, 2006, 6:24:30 AM12/13/06
to
F. Senault <fr...@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

Iulius

unread,
Dec 13, 2006, 7:49:48 AM12/13/06
to
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)

Michael Grimm

unread,
Dec 20, 2006, 1:31:18 PM12/20/06
to
Iulius <iul...@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

0 new messages