Thread View: news.software.nntp
5 messages
5 total messages
Started by D. Stussy
Fri, 10 Feb 2012 20:44
Checkgroups - Ignore invalid lines
Author: D. Stussy
Date: Fri, 10 Feb 2012 20:44
Date: Fri, 10 Feb 2012 20:44
43 lines
3085 bytes
3085 bytes
Since we have at least one hierarchy adminstrator who insists on including "comments" with his checkgroups data, can we please add code to ignore these lines? I can only guess that others see what I see: A valid checkgroups message that gets processed, and for the comment lines, mail to the news adminstrator. Suggested alternatives: 1) Filter only on the presence of "#" (octothorpe) as the first character 2) Filter any line that does not start with a valid group pattern: ^.+\..+\s [The ultimate regex pattern: "[a-z][-a-z0-9_+]+(\.[a-z0-9][-a-z0-9_+]*)+\t+.+"] 3) Ignore the problem, thus continuing to annoy usenet administrators. 4) Reject the checkgroups message as invalid. Let the discussion begin. For reference: "Administrator ffm.*" <ffm.admin@arcor.de> wrote in message news:ffm.checkgroup.20120201000001@ffm.arcornews.de... > # For your moderators file: > # ffm.*:%s@moderators.arcornews.de > # > # For your control file: > # ## FFM (Frankfurt/M., Germany) > # checkgroups:ffm.admin@arcor.de:ffm.*:verify-ffm.admin > # newgroup:ffm.admin@arcor.de:ffm.*:verify-ffm.admin > # rmgroup:ffm.admin@arcor.de:ffm.*:verify-ffm.admin > # > # For further informations see: > # http://ffm.arcornews.de/ > > ffm.admin Es spricht der Admin. (Moderated) > ffm.ausgehen Frankfurt geht aus. > ffm.fundgrube Suchen, finden, bieten, feilschen. > ffm.internet Reinkommen, klarkommen, rumkommen. > ffm.jobs Wer hat was, wer will was? > ffm.kontakte Es sucht es. > ffm.misc Was sonst nirgends passt. > ffm.talk Laber, Suelz, Dumschwall. > ffm.test Nur fuer Tests. > ffm.weltuntergang Es kommt!
Re: Checkgroups - Ignore invalid lines
Author: Julien ÉLIE
Date: Mon, 13 Feb 2012 12:43
Date: Mon, 13 Feb 2012 12:43
19 lines
2023 bytes
2023 bytes
Hi Dieter, > Since we have at least one hierarchy adminstrator who insists on including > "comments" with his checkgroups data, can we please add code to ignore > these lines? I can only guess that others see what I see: A valid > checkgroups message that gets processed, and for the comment lines, mail to > the news adminstrator. > > For reference: > "Administrator ffm.*" <ffm.admin@arcor.de> wrote in message > news:ffm.checkgroup.20120201000001@ffm.arcornews.de... Did you try to contact him to make him aware of the problem? -- Julien ÉLIE « – Que lui est-il arrivé ? Un choc moral ? – Oui, avec un menhir. » (Astérix)
Re: Checkgroups - Ignore invalid lines
Author: D. Stussy
Date: Tue, 14 Feb 2012 02:23
Date: Tue, 14 Feb 2012 02:23
20 lines
2262 bytes
2262 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:9pses5FdrcU1@mid.individual.net... > > Since we have at least one hierarchy adminstrator who insists on including > > "comments" with his checkgroups data, can we please add code to ignore > > these lines? I can only guess that others see what I see: A valid > > checkgroups message that gets processed, and for the comment lines, mail to > > the news adminstrator. > > > > For reference: > > "Administrator ffm.*" <ffm.admin@arcor.de> wrote in message > > news:ffm.checkgroup.20120201000001@ffm.arcornews.de... > > Did you try to contact him to make him aware of the problem? Not recently. However, that doesn't really answer the question of what INN should do when it encounters a message which violates the standards.
Re: Checkgroups - Ignore invalid lines
Author: Julien ÉLIE
Date: Wed, 15 Feb 2012 11:40
Date: Wed, 15 Feb 2012 11:40
22 lines
2189 bytes
2189 bytes
Hi Dieter,
> However, that doesn't really answer the question of what INN
> should do when it encounters a message which violates the standards.
As far as I see, controlchan removes unrecognized lines when processing
checkgroups.
control/modules/checkgroups.pl
foreach (@body) {
my ($ngname, $ngdesc) = split(/\s+/, $_, 2);
next if ($ngname !~ /$newsgrouppats/);
I believe you are then only speaking about mails sent by controlchan
when control.ctl specifies not to automatically process the message?
--
Julien ÉLIE
« Qui habet aures audiendi, audiat. » (Évangiles)
Re: Checkgroups - Ignore invalid lines
Author: D. Stussy
Date: Wed, 15 Feb 2012 19:40
Date: Wed, 15 Feb 2012 19:40
47 lines
3110 bytes
3110 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:jhg5k7$ffg$1@news.trigofacile.com...
> > However, that doesn't really answer the question of what INN
> > should do when it encounters a message which violates the standards.
>
> As far as I see, controlchan removes unrecognized lines when processing
> checkgroups.
>
> control/modules/checkgroups.pl
>
> foreach (@body) {
> my ($ngname, $ngdesc) = split(/\s+/, $_, 2);
> next if ($ngname !~ /$newsgrouppats/);
>
>
> I believe you are then only speaking about mails sent by controlchan
> when control.ctl specifies not to automatically process the message?
What I see as the action taken:
The valid newsgroup description lines get processed.
The invalid lines get mailed to the news administrator.
The latter action may be happening due to this entry in "control.ctl":
# Default to mailing all checkgroups messages to the administrator.
checkgroups:*:*:mail
I have not experimented with this, but as all group names which pass
through the program should have two components, maybe the three default
entries for checkgroups, newgroup, and rmgroup should be re-written as
(e.g.):
checkgroups:*:*.*:mail
newgroup:*:*.*:mail
rmgroup:*:*.*:mail
That is, the group field should have "*.*", not "*", so as to require the
presence of a period (thus implying two components). Maybe ISC's file
should be updated with this change?
The five allowed single-component groups ("control", "general", "junk",
"test", and "to") don't get checkgrouped and should be subjected to the
"all:*:*:drop" entry anyway.
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