🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #12541

Re: Problem with '+' in group name in moderators file

#12541
From: Randy Byers
Date: Thu, 21 Nov 1996 00:00
65 lines
2696 bytes
In article <yy3lobwndi1.fsf@velo.pp.vix.com> you write:
>rmbyers@mag1.magmacom.com (Randy Byers) writes:
>
>> I'm trying to add an entry to the moderators file for the
>> comp.lang.c++ group.  It seems that both inncheck and innd do not
>> like the '+' symbol in this file.
>>
>> Any help would be appreciated.
>
>Please be more specific about the problems...
>
>James Brister                                            brister@vix.com 
>Internet Software Consortium       http://www.isc.org    inn@isc.org

Ok,

I try to put the following two lines into the moderators file:

comp.std.c++:std-c++@ncar.ucar.edu
comp.lang.c++.moderated:c++-submit@netlab.cs.rpi.edu

inncheck produces the following output:

/var/news/etc/moderators:9: malformed line.
/var/news/etc/moderators:10: malformed line.

Looking at the code for inncheck, I find:

unless ( ($k, $v) = /^([\w\.\-\*]*):(.*)$/ ) {

indicates that the group name can only have alphabetic characters,
a period, a dash, or an asterisk in the group name.

I tried adding a \+ in there and inncheck doesn't generate any
more errors, but I still can't post to that group:

---------------------------------------------------------------

Thinking that maybe innd may still accept it, I did a 
'ctlinnd reload all ...' on the news server, but then
trying to post an article generates the following message:

The "comp.std.c++" newsgroup is moderated, but has no address;
ask your news administrator to fix this.

I found the following snippet of code in getmodaddr.c:

   /* If it pattern-matches the newsgroup, the second field is a
    * format for mailing, with periods changed to dashes. */
     if (wildmat(name, buff)) { 

Looking at the preceeding code, 'name' is the group name that
we're looking for in the moderators file and 'buff' is the line
just read in from the moderators file.  It looks like wildmat isn't
matching the two.

My next step is to throw some debug printf's in this section of
code and see what 'name' and 'buff' are equal to at this point in 
the code.

Randy


Technical Details
Message-ID: <571rbq$iso@mag1.magmacom.com>
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: <5703ic$evc@mag1.magmacom.com>

Show Full Headers
Complete Article Headers
Message-ID: <571rbq$iso@mag1.magmacom.com>
Subject: Re: Problem with '+' in group name in moderators file
Date: Thu, 21 Nov 1996 00:00:00 +0000
From: rmbyers@mag1.magmacom.com (Randy Byers)
References: <5703ic$evc@mag1.magmacom.com>
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: 197836271
Organization: Magma Communications Ltd., Ottawa, Ont., Canada
Newsgroups: news.software.nntp