🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
12 messages
12 total messages Started by christian mock Wed, 05 Mar 2003 08:16
distribution of control messages
#64267
Author: christian mock
Date: Wed, 05 Mar 2003 08:16
44 lines
2637 bytes
Hi,

I'm having a problem with the distribution of newgroup messages --
they only get fed to the peers which have a "*" in the newsgroup file
pattern.

At first, I thought this was because the Newsgroups header in the
messages only had "oesterreich.control" in them, so I added the
to-be-created group itself, as innd(8) says -- still no luck, all the
peers that have "@*,oesterreich.*" in the newsfeeds file still don't
get it.

Is that because of "@*" instead of "!*"? If so, how can I achieve
distribution of control messages and the "no crosspostings" effect of
"@*"?

INN 2.4.0 (20030221 prerelease)

control message header:

Path: news.tahina.priv.at!not-for-mail
From: cm@tahina.priv.at (christian mock)
Newsgroups: oesterreich.control,oesterreich.tuvok.filmkritiken
Subject: cmsg newgroup oesterreich.tuvok.filmkritiken
Control: newgroup oesterreich.tuvok.filmkritiken
Date: Wed, 5 Mar 2003 08:07:34 +0000 (UTC)
Organization: none.
Lines: 9
Approved: cm@tahina.priv.at
Message-ID: <b44b86$lo6$1@tahina.priv.at>
NNTP-Posting-Host: laberl.tahina.priv.at
X-Trace: tahina.priv.at 1046851654 22278 192.168.55.9 (5 Mar 2003 08:07:34 GMT)
X-Complaints-To: abuse@tahina.priv.at
NNTP-Posting-Date: Wed, 5 Mar 2003 08:07:34 +0000 (UTC)
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
Originator: cm@tahina.priv.at (christian mock)
Xref: news.tahina.priv.at control:180520
-- 
** christian mock in vienna, austria -- http://www.tahina.priv.at/~cm/
Vielleicht ist es aber auch nur einfach Zeit, dem Wolfi wieder den
root-Account wegzunehmen. Er ist noch zu klein dafuer.
 Ferdinand Goldmann in at.gesellschaft.politik
Re: distribution of control messages
#64266
Author: Rob Maxwell
Date: Wed, 05 Mar 2003 09:55
45 lines
2559 bytes
"christian mock" <cm@tahina.priv.at> wrote in message
news:b44bo1$lp1$1@tahina.priv.at...
>
> Hi,
>
> I'm having a problem with the distribution of newgroup messages --
> they only get fed to the peers which have a "*" in the newsgroup file
> pattern.
>
> At first, I thought this was because the Newsgroups header in the
> messages only had "oesterreich.control" in them, so I added the
> to-be-created group itself, as innd(8) says -- still no luck, all the
> peers that have "@*,oesterreich.*" in the newsfeeds file still don't
> get it.
>
> Is that because of "@*" instead of "!*"? If so, how can I achieve
> distribution of control messages and the "no crosspostings" effect of
> "@*"?
>
> INN 2.4.0 (20030221 prerelease)
>

Well, the non-technical solution would be to repost the control to
de.admin.news.misc. This will get the control to nearly all servers that carry
German language newsgroups. With the open, global distribution of de.*,
basically everyone will get your control and either react to it if they carry
oesterreich.* or ignore it; and all will pass it on to their peers with the
rest of de.*.

Of course, you still have to deal with the peering issues.

Additionally, you may want to consider acquiring a pgp key to sign your
controls and submitting your admin information to INN to add to the master
control.ctl file that is disturbed with INN:
ftp://ftp.isc.org/pub/usenet/CONFIG/control.ctl
Either or both of these may be helpful today or in the future.

--
Rob Maxwell
Administrator
bc and van hierarchies


Re: distribution of control messages
#64273
Author: Jeffrey M. Vinocur
Date: Wed, 05 Mar 2003 16:48
17 lines
1490 bytes
In article <b44bo1$lp1$1@tahina.priv.at>,
christian mock <cm@tahina.priv.at> wrote:
>
>I'm having a problem with the distribution of newgroup messages --
>they only get fed to the peers which have a "*" in the newsgroup file
>pattern.

I believe it should be fed to any peer which would receive
articles in that group after creation.  You haven't shown the
newsfeeds(5) entry you're having problems with...does it match
oesterreich.tuvok.filmkritiken?


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: distribution of control messages
#64274
Author: Curt Welch
Date: Wed, 05 Mar 2003 17:06
60 lines
3327 bytes
cm@tahina.priv.at (christian mock) wrote:
> Hi,
>
> I'm having a problem with the distribution of newgroup messages --
> they only get fed to the peers which have a "*" in the newsgroup file
> pattern.
>
> At first, I thought this was because the Newsgroups header in the
> messages only had "oesterreich.control" in them, so I added the
> to-be-created group itself, as innd(8) says -- still no luck, all the
> peers that have "@*,oesterreich.*" in the newsfeeds file still don't
> get it.
>
> Is that because of "@*" instead of "!*"?

Probably.  I wouldn't expect an entry with @* to feed anything to anywhere.

> If so, how can I achieve
> distribution of control messages and the "no crosspostings" effect of
> "@*"?

What are you trying to do?  Just feed the control messages?  Or what?  Or
are you trying to feed all oesterreich.* articles including control
messages for that hierarchy but not feed articles cross posted outside the
hierarchy?

I haven't used any version of INN in 5 years, but isn't there a flag to
filter based on the number of cross posts if that is what you want?

Can't you do something like oesterreich.*, or just oesterreich.control and
then filter everything cross posted to more than one group if that is what
you are trying to do.

> INN 2.4.0 (20030221 prerelease)
>
> control message header:
>
> Path: news.tahina.priv.at!not-for-mail
> From: cm@tahina.priv.at (christian mock)
> Newsgroups: oesterreich.control,oesterreich.tuvok.filmkritiken
> Subject: cmsg newgroup oesterreich.tuvok.filmkritiken
> Control: newgroup oesterreich.tuvok.filmkritiken
> Date: Wed, 5 Mar 2003 08:07:34 +0000 (UTC)
> Organization: none.
> Lines: 9
> Approved: cm@tahina.priv.at
> Message-ID: <b44b86$lo6$1@tahina.priv.at>
> NNTP-Posting-Host: laberl.tahina.priv.at
> X-Trace: tahina.priv.at 1046851654 22278 192.168.55.9 (5 Mar 2003
>   08:07:34 GMT)
> X-Complaints-To: abuse@tahina.priv.at
> NNTP-Posting-Date: Wed, 5 Mar 2003 08:07:34 +0000 (UTC)
> X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
> Originator: cm@tahina.priv.at (christian mock)
> Xref: news.tahina.priv.at control:180520

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: distribution of control messages
#64277
Author: Russ Allbery
Date: Wed, 05 Mar 2003 18:01
24 lines
1937 bytes
christian mock <cm@tahina.priv.at> writes:

> I'm having a problem with the distribution of newgroup messages -- they
> only get fed to the peers which have a "*" in the newsgroup file
> pattern.

> At first, I thought this was because the Newsgroups header in the
> messages only had "oesterreich.control" in them, so I added the
> to-be-created group itself, as innd(8) says -- still no luck, all the
> peers that have "@*,oesterreich.*" in the newsfeeds file still don't get
> it.

Oh, weird, that stopped being the default behavior somewhere along the
lines.  I wonder when that happened.

Set ignorenewsgroups to true in inn.conf and you'll get the behavior that
you expected.  That should really be the default.

-- 
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: distribution of control messages
#64283
Author: christian mock
Date: Wed, 05 Mar 2003 19:33
24 lines
2060 bytes
Rob Maxwell <altfaq@subdimension.com> wrote:

> Well, the non-technical solution would be to repost the control to
> de.admin.news.misc. This will get the control to nearly all servers that carry

That'd be a rather nasty hack -- the oesterreich.* hierarchy is
somewhat special, including the fact that there's a web interface for
anonymous newgroup message creation, and I want to keep it strictly
separate from any managed hierarchy.

> Additionally, you may want to consider acquiring a pgp key to sign your

Well, given the newsgroup creation process, that wouldn't make much
sense.

Thanks anyways,

cm.
-- 
** christian mock in vienna, austria -- http://www.tahina.priv.at/~cm/
Vielleicht ist es aber auch nur einfach Zeit, dem Wolfi wieder den
root-Account wegzunehmen. Er ist noch zu klein dafuer.
 Ferdinand Goldmann in at.gesellschaft.politik
Re: distribution of control messages
#64282
Author: christian mock
Date: Wed, 05 Mar 2003 20:06
39 lines
2581 bytes
Russ Allbery  <rra@stanford.edu> wrote:

> > At first, I thought this was because the Newsgroups header in the
> > messages only had "oesterreich.control" in them, so I added the
> > to-be-created group itself, as innd(8) says -- still no luck, all the
> > peers that have "@*,oesterreich.*" in the newsfeeds file still don't get
> > it.
> 
> Oh, weird, that stopped being the default behavior somewhere along the
> lines.  I wonder when that happened.
>
> Set ignorenewsgroups to true in inn.conf and you'll get the behavior that
> you expected.  That should really be the default.

_What_ stopped being the default behaviour? 

Well, and my inn.conf says

ignorenewsgroups:       true

and I'm quite sure that it did work the way I expect it before,
because I only found the problem after a user complained that his
newgroup message didn't propagate.

Time to dig into the source, hmmm? I don't completely grok the code,
but the poisoning in art.c:2089 looks suspicious... that code is a
special case for new/rmgroup messages, and in fact the
"@*,something.*" works fine for normal articles.

ciao,

cm.

-- 
>> [1] MSFP nennt das dann "Hooverbutton",
>                           ^^^^^^ Weils so gut saugt?
Das. Und weil's aussieht wie J. Edgar in Fummel.
              Martin Herrmann, Peter J. Holzer, Felix Deutsch in dasr
Re: distribution of control messages
#64284
Author: Russ Allbery
Date: Wed, 05 Mar 2003 22:31
48 lines
2974 bytes
christian mock <cm@tahina.priv.at> writes:
> Russ Allbery  <rra@stanford.edu> wrote:

>> Oh, weird, that stopped being the default behavior somewhere along the
>> lines.  I wonder when that happened.

>> Set ignorenewsgroups to true in inn.conf and you'll get the behavior that
>> you expected.  That should really be the default.

> _What_ stopped being the default behaviour? 

ignorenewsgroups: true.  I'm not sure why that's even an option.

> Well, and my inn.conf says

> ignorenewsgroups:       true

Hm.  Okay, that wasn't the problem, then.

> Time to dig into the source, hmmm? I don't completely grok the code, but
> the poisoning in art.c:2089 looks suspicious... that code is a special
> case for new/rmgroup messages, and in fact the "@*,something.*" works
> fine for normal articles.

Oh, I see, you're running CURRENT.  Sorry, for some reason thought you
were running 2.3.

Hm.  By that point, since you have ignorenewsgroups set, the groups array
should contain only the newsgroup mentioned in the control message, and at
that point all feed decisions should be made on that basis.  So the
poisoning there should be fine; it should be checking based on whether
that site has poisoned a newsgroup which either doesn't exist (in which
case it can't have poisoned it) or that should be passed by the feed
pattern for that site.

I'm not seeing anything obviously wrong with the logic, assuming
ignorenewsgroups is set to true, which I know doesn't help any.

Does changing @* to !* help any?  You can test by setting up a separate
feed to a file, although it would require reposting the control message
again to see if it gets fed to that file.  :/

-- 
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: distribution of control messages
#64305
Author: christian mock
Date: Fri, 07 Mar 2003 08:04
25 lines
2083 bytes
Russ Allbery  <rra@stanford.edu> wrote:

> Hm.  By that point, since you have ignorenewsgroups set, the groups array
> should contain only the newsgroup mentioned in the control message, and at
> that point all feed decisions should be made on that basis.  So the

OK, I found it: art.c:2030

strlcpy(ControlWord, HDR(HDR__CONTROL), sizeof(ControlWord));

is the culprit -- ControlWord is a char[16], which means "newgroup
oesterreich.something" becomes "newgroup oester", and afterwards the
group name is parsed from ControlWord, which means we look for peers
wanting "oester", and that is only matched by "*".

ciao,

cm.

-- 
** christian mock in vienna, austria -- http://www.tahina.priv.at/~cm/
Ich beraube mich doch nicht des Vergn�gens zu beobachten, wie sich diese
zarte Knospe der Dummheit weiter entfaltet.
 Markus Pirchner ueber xxx in abm-mi
Re: distribution of control messages
#64309
Author: Jeffrey M. Vinocur
Date: Fri, 07 Mar 2003 16:53
24 lines
1832 bytes
In article <b49jqk$ijm$1@tahina.priv.at>,
christian mock <cm@tahina.priv.at> wrote:
>
>OK, I found it: art.c:2030
>
>strlcpy(ControlWord, HDR(HDR__CONTROL), sizeof(ControlWord));
>
>is the culprit -- ControlWord is a char[16], which means "newgroup
>oesterreich.something" becomes "newgroup oester", and afterwards the
>group name is parsed from ControlWord, which means we look for peers
>wanting "oester", and that is only matched by "*".

*boggle*

Yes, the value in "p" can't possibly be used further down as it
is.  I'm just not sure when this change came about, unless it's a
really obscure bug resulting from the fact that strlcpy doesn't
NUL-pad the destination string if it's shorter.


-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: distribution of control messages
#64310
Author: Russ Allbery
Date: Fri, 07 Mar 2003 16:57
27 lines
2142 bytes
Jeffrey M Vinocur <jeff@litech.org> writes:
> christian mock <cm@tahina.priv.at> wrote:

>> OK, I found it: art.c:2030

>> strlcpy(ControlWord, HDR(HDR__CONTROL), sizeof(ControlWord));

>> is the culprit -- ControlWord is a char[16], which means "newgroup
>> oesterreich.something" becomes "newgroup oester", and afterwards the
>> group name is parsed from ControlWord, which means we look for peers
>> wanting "oester", and that is only matched by "*".

> *boggle*

> Yes, the value in "p" can't possibly be used further down as it
> is.  I'm just not sure when this change came about, unless it's a
> really obscure bug resulting from the fact that strlcpy doesn't
> NUL-pad the destination string if it's shorter.

I'll do some research today and get this fixed.  Thank you!  Nice catch.

-- 
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: distribution of control messages
#64318
Author: Russ Allbery
Date: Sun, 09 Mar 2003 01:31
20 lines
1835 bytes
christian mock <cm@tahina.priv.at> writes:

> OK, I found it: art.c:2030

> strlcpy(ControlWord, HDR(HDR__CONTROL), sizeof(ControlWord));

> is the culprit -- ControlWord is a char[16], which means "newgroup
> oesterreich.something" becomes "newgroup oester", and afterwards the
> group name is parsed from ControlWord, which means we look for peers
> wanting "oester", and that is only matched by "*".

Looks like that bug dated back about two years.  Thank you!  Fixed in
CURRENT.

-- 
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.
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