Thread View: news.software.nntp
36 messages
36 total messages
Started by D. Stussy
Sat, 07 Mar 2009 20:40
INN and newgroups - was Re: cmsg rmgroup alt.usenet.peering (Booster)
Author: D. Stussy
Date: Sat, 07 Mar 2009 20:40
Date: Sat, 07 Mar 2009 20:40
32 lines
3010 bytes
3010 bytes
"Adam H. Kerman" <ahk@chinet.com> wrote in message news:gotdup$k04$3@news.albasani.net... > D. Stussy <replies@newsgroups.kd6lvw.ampr.org> wrote: > ... > >yet ISC's archive only contains "properly formatted" control messages. > >The record may be incomplete (hint) should there have been earlier > >messages that did not get archived.... > > Unbelievable. You utterly fail to understand the basic purpose of the > archive at ftp.isc.org, don't you. If the control message doesn't get > archived, that's usually a huge hint that it had syntax errors. The record > is not incomplete. Syntactically incorrect control messages shouldn't > be archived. And what you fail to note is that a newgroup message syntactically correct other than a missing "for your newsgroups file:" line WILL be acted upon by INN (inserting a "No description." entry into newsgroups) but not be archived at ISC. How do I know that? Look at all the bogus groups created by the "alteferians" - they all lack a valid description line and unless blocked in the configuration, each one of those newgroup messages will create the group named therein. It turns out that INN uses a case-sensitive scan for the phrase "For your newsgroups file:" (which should probably be case insensitive). I can't speak for other news server software, but it's quite possible to issue messages that will cause group creation without being archived that appear syntactically valid. Therefore, how do you know that there wasn't a control message not archived at ISC that initially created the group - and that the ones archived were in fact in response to the nazi bitch's rogue rmgroup attempts.
Re: INN and newgroups - was Re: cmsg rmgroup alt.usenet.peering (Booster)
Author: Julien ÉLIE
Date: Sat, 07 Mar 2009 21:11
Date: Sat, 07 Mar 2009 21:11
21 lines
2149 bytes
2149 bytes
Hi D. Stussy,
> It turns out that INN uses a
> case-sensitive scan for the phrase "For your newsgroups file:" (which
> should probably be case insensitive).
USEPRO states it is case sensitive:
groupinfo-body = [ newsgroups-tag CRLF ]
newsgroups-line CRLF
newsgroups-tag = %x46.6F.72 SP %x79.6F.75.72 SP
%x6E.65.77.73.67.72.6F.75.70.73 SP
%x66.69.6C.65.3A
; case sensitive
; "For your newsgroups file:"
--
Julien ÉLIE
« Mon âme a son secret, ma vie a son mystère. » (Félix Arvers)
Re: INN and newgroups
Author: D. Stussy
Date: Sun, 08 Mar 2009 03:14
Date: Sun, 08 Mar 2009 03:14
76 lines
4864 bytes
4864 bytes
"Adam H. Kerman" <ahk@chinet.com> wrote in message news:goup2h$k2u$1@news.albasani.net... > D. Stussy <replies@newsgroups.kd6lvw.ampr.org> wrote: > >"Adam H. Kerman" <ahk@chinet.com> wrote: > >>D. Stussy <replies@newsgroups.kd6lvw.ampr.org> wrote: > > >>>yet ISC's archive only contains "properly formatted" control messages. > >>>The record may be incomplete (hint) should there have been earlier > >>>messages that did not get archived.... > > >>Unbelievable. You utterly fail to understand the basic purpose of the > >>archive at ftp.isc.org, don't you. If the control message doesn't get > >>archived, that's usually a huge hint that it had syntax errors. The record > >>is not incomplete. Syntactically incorrect control messages shouldn't > >>be archived. > > >And what you fail to note is that a newgroup message syntactically correct > >other than a missing "for your newsgroups file:" line WILL be acted upon by > >INN (inserting a "No description." entry into newsgroups) but not be > >archived at ISC. > > No, I've read Russ's ftp://ftp.isc.org/pub/usenet/CONFIG/README , even > had a bit of influence on that policy. Think of it like an intelligence > test. Proponent unable to get syntax correct is likely to be useless. It's not a matter of policy. It's a matter of implementation. Look at ~news/bin/control/newgroup and note that the comparison which scans for the newsgroup description is in fact case sensitive and that the code will still add the group (if that is the appropriate action) when the description is absent. However, in such a case, the ISC archive will NOT store the message. > If someone sets up a server to act upon each and every control message > as received, he may learn a lesson right quick that that's not the best > practice and a lousy way to support his users. But then, he's not actually > using the archives, is he? Note that for the alt hierarchy, that is the default setup for INN unless changed locally on a per-server basis. > >It turns out that INN uses a case-sensitive scan for the phrase "For > >your newsgroups file:" (which should probably be case insensitive). > >I can't speak for other news server software, but it's quite possible > >to issue messages that will cause group creation without being archived > >that appear syntactically valid. > > Of course it shouldn't be case insensitive. The point is that the phrase > has a syntax that should be followed. Only lunatics argue about whether > syntax should be followed. Haven't we had exactly this same discussion > several times in the past? My point is that it's all too easy for a HUMAN to screw that up and thus send out a message that has no group description. That's why it should be made case insensitive. And no, we haven't had this discussion before. What you concentrated on last time was whether a message that had an embedded tab should have its tab substituted by spaces as some news readers apparently did when generating a reply. > >Therefore, how do you know that there wasn't a control message not archived > >at ISC that initially created the group - and that the ones archived were > >in fact in response to the nazi bitch's rogue rmgroup attempts. > > Well, let's see: If the archive doesn't have christinA's rmgroup message > first, then that's evidence that your theory is incorrect. You assume that the nazi-bitch issues rmgroups for improperly formatted newgroup messages, yet clearly stated above that she does not (c.f altereferians). You can't have it both ways.
Re: INN and newgroups - was Re: cmsg rmgroup alt.usenet.peering (Booster)
Author: D. Stussy
Date: Sun, 08 Mar 2009 07:36
Date: Sun, 08 Mar 2009 07:36
26 lines
2641 bytes
2641 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gouo07$hv2$1@news.trigofacile.com...
> > It turns out that INN uses a
> > case-sensitive scan for the phrase "For your newsgroups file:" (which
> > should probably be case insensitive).
>
> USEPRO states it is case sensitive:
>
> groupinfo-body = [ newsgroups-tag CRLF ]
> newsgroups-line CRLF
> newsgroups-tag = %x46.6F.72 SP %x79.6F.75.72 SP
> %x6E.65.77.73.67.72.6F.75.70.73 SP
> %x66.69.6C.65.3A
> ; case sensitive
> ; "For your newsgroups file:"
Fine, but I am suggesting that perhaps it shouldn't be, or at least INN
accept case-insensitive matches. I agree that the format (case) "as is" is
correct English, but it's all too easy when manually creating a message to
forget to capitalize the leading F. Note that INN will still process a
message that has this in error by creating the group (if it doesn't already
exist) with a description in {path_index}/newsgroups of "No description."
If this line is a requirement, then perhaps such newgroup messages should
be rejected (i.e. not acted on) instead of accepted.
Re: INN and newgroups
Author: Julien ÉLIE
Date: Sun, 08 Mar 2009 10:27
Date: Sun, 08 Mar 2009 10:27
73 lines
4787 bytes
4787 bytes
Hi D. Stussy,
Follow-up set only to news.software.nntp and news.admin.hierarchies.
>> USEPRO states it is case sensitive:
>>
>> groupinfo-body = [ newsgroups-tag CRLF ]
>> newsgroups-line CRLF
>> newsgroups-tag = %x46.6F.72 SP %x79.6F.75.72 SP
>> %x6E.65.77.73.67.72.6F.75.70.73 SP
>> %x66.69.6C.65.3A
>> ; case sensitive
>> ; "For your newsgroups file:"
>
> Fine, but I am suggesting that perhaps it shouldn't be, or at least INN
> accept case-insensitive matches. I agree that the format (case) "as is" is
> correct English, but it's all too easy when manually creating a message to
> forget to capitalize the leading F.
I do not know what is the best to do.
I would tend not to change the case-sensitivity. It is up to the person who
sends the article to do it right.
In January 2009 for instance, the French Control administrator tried to send
several "newgroup fr.misc.handicap m". He found out it was not working (and
created an unmoderated newsgroup). And he sent afterwards the right
"newgroup fr.misc.handicap moderated".
Once somebody has sent a control article, he should check whether the action
is fine (for instance in the logs of ftp.isc.org). He should not send
control articles blindly!
French people would prefer to write "Pour votre fichier newsgroups :"
(with a *space* before the colon -- so if they write in English
"For your newsgroups file :", it will not work). Neither will it work
with "For your newsgroup file:" or "For your newsgroups file:", etc.
All typos. There is not only case-sensitivity...
> Note that INN will still process a
> message that has this in error by creating the group (if it doesn't already
> exist) with a description in {path_index}/newsgroups of "No description."
Yes. Or also "No description. (Moderated)" to be consistent with moderated
newsgroups.
> If this line is a requirement, then perhaps such newgroup messages should
> be rejected (i.e. not acted on) instead of accepted.
This line is not a requirement. It is a SHOULD (even a MAY), not a MUST.
The body of a newgroup message SHOULD contain an entity of type
application/news-groupinfo specifying the description of the newsgroup,
either as the entire body or as an entity within a multipart/mixed object.
If such an entity is present, the moderation status specified therein MUST
match the moderation status specified by the <newgroup-flag>.
In the absence of an application/news-groupinfo entity, a news server MAY search
the body of the message for the line "For your newsgroups file:" and take the
following line as a <newsgroups-line>.
> However, in such a case, the ISC archive will NOT store the message.
INN does not necessarily follow the same policy as ISC.
--
Julien ÉLIE
« Tous les champignons sont comestibles. Certains, une fois seulement. »
Re: INN and newgroups
Author: D. Stussy
Date: Sun, 08 Mar 2009 19:51
Date: Sun, 08 Mar 2009 19:51
95 lines
5433 bytes
5433 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gp06kc$uj6$1@news.trigofacile.com...
> Follow-up set only to news.software.nntp and news.admin.hierarchies.
> >> USEPRO states it is case sensitive:
> >>
> >> groupinfo-body = [ newsgroups-tag CRLF ]
> >> newsgroups-line CRLF
> >> newsgroups-tag = %x46.6F.72 SP %x79.6F.75.72 SP
> >> %x6E.65.77.73.67.72.6F.75.70.73 SP
> >> %x66.69.6C.65.3A
> >> ; case sensitive
> >> ; "For your newsgroups file:"
> >
> > Fine, but I am suggesting that perhaps it shouldn't be, or at least INN
> > accept case-insensitive matches. I agree that the format (case) "as
is" is
> > correct English, but it's all too easy when manually creating a message
to
> > forget to capitalize the leading F.
>
> I do not know what is the best to do.
> I would tend not to change the case-sensitivity. It is up to the person
who
> sends the article to do it right.
>
> In January 2009 for instance, the French Control administrator tried to
send
> several "newgroup fr.misc.handicap m". He found out it was not working
(and
> created an unmoderated newsgroup). And he sent afterwards the right
> "newgroup fr.misc.handicap moderated".
>
> Once somebody has sent a control article, he should check whether the
action
> is fine (for instance in the logs of ftp.isc.org). He should not send
> control articles blindly!
>
> French people would prefer to write "Pour votre fichier newsgroups :"
> (with a *space* before the colon -- so if they write in English
> "For your newsgroups file :", it will not work). Neither will it work
> with "For your newsgroup file:" or "For your newsgroups file:", etc.
> All typos. There is not only case-sensitivity...
>
> > Note that INN will still process a
> > message that has this in error by creating the group (if it doesn't
already
> > exist) with a description in {path_index}/newsgroups of "No
description."
>
> Yes. Or also "No description. (Moderated)" to be consistent with
moderated
> newsgroups.
>
> > If this line is a requirement, then perhaps such newgroup messages
should
> > be rejected (i.e. not acted on) instead of accepted.
>
> This line is not a requirement. It is a SHOULD (even a MAY), not a MUST.
>
> The body of a newgroup message SHOULD contain an entity of type
> application/news-groupinfo specifying the description of the
newsgroup,
> either as the entire body or as an entity within a multipart/mixed
object.
> If such an entity is present, the moderation status specified therein
MUST
> match the moderation status specified by the <newgroup-flag>.
>
> In the absence of an application/news-groupinfo entity, a news server
MAY search
> the body of the message for the line "For your newsgroups file:" and
take the
> following line as a <newsgroups-line>.
When I see SHOULD instead of MUST, to me that means:
1) The issue being controlled by "should" is optional, or
2) The format of the issue being controlled may vary from a preferred
format - i.e. other forms are acceptable and valid.
It's clear here that the description is optional, but I suggest that
alternative forms that are sufficiently close enough (e.g. case
insensitivity) also be accepted. That does not require a change in the
standard but merely a change in interpretation by the software.
> > However, in such a case, the ISC archive will NOT store the message.
>
> INN does not necessarily follow the same policy as ISC.
Exactly my point: INN may act on messages that ISC considers invalid and
thus never archives them. Therefore, the lack of an ISC archive copy of a
message does not mean that the control message did not exist (or was not
sent). The ISC archive only affirms the positive. It does not affirm the
negative.
Re: INN and newgroups - was Re: cmsg rmgroup alt.usenet.peering (Booster)
Author: Russ Allbery
Date: Sun, 08 Mar 2009 19:53
Date: Sun, 08 Mar 2009 19:53
22 lines
2561 bytes
2561 bytes
"D. Stussy" <spam@bde-arc.ampr.org> writes:
> Fine, but I am suggesting that perhaps it shouldn't be, or at least INN
> accept case-insensitive matches. I agree that the format (case) "as is"
> is correct English, but it's all too easy when manually creating a
> message to forget to capitalize the leading F. Note that INN will still
> process a message that has this in error by creating the group (if it
> doesn't already exist) with a description in {path_index}/newsgroups of
> "No description." If this line is a requirement, then perhaps such
> newgroup messages should be rejected (i.e. not acted on) instead of
> accepted.
I think that might be a good idea, actually (to reject any newgroup that
doesn't have a correctly formatted description in the body). It's been a
fairly effective filter on ftp.isc.org without any significant drawbacks
that I've seen.
--
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: INN and newgroups
Author: Russ Allbery
Date: Sun, 08 Mar 2009 20:18
Date: Sun, 08 Mar 2009 20:18
27 lines
2630 bytes
2630 bytes
"D. Stussy" <spam@bde-arc.ampr.org> writes: > When I see SHOULD instead of MUST, to me that means: > 1) The issue being controlled by "should" is optional, or > 2) The format of the issue being controlled may vary from a preferred > format - i.e. other forms are acceptable and valid. What it should mean to you is: 3. SHOULD This word, or the adjective "RECOMMENDED", mean that there may exist valid reasons in particular circumstances to ignore a particular item, but the full implications must be understood and carefully weighed before choosing a different course. The all-caps words are defined in RFC 2119. However, USEPRO intentionally doesn't put restrictions on what the server can do, only on what the client may send, so it doesn't really resolve the issue of what the server should do. In practice, however, I see little benefit in trying to do a fuzzy match of that line; normally, problems with control messages come from too much junk you don't want to honor, not from missing valid control messages that you do want to owner. It's similar to the situation with e-mail spam: strictly enforcing the relevant standards tends to get rid of spam and keep valid messages. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Re: INN and newgroups
Author: D. Stussy
Date: Sun, 08 Mar 2009 20:41
Date: Sun, 08 Mar 2009 20:41
43 lines
3566 bytes
3566 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message news:87ljrfu5ty.fsf@windlord.stanford.edu... > "D. Stussy" <spam@bde-arc.ampr.org> writes: > > When I see SHOULD instead of MUST, to me that means: > > 1) The issue being controlled by "should" is optional, or > > 2) The format of the issue being controlled may vary from a preferred > > format - i.e. other forms are acceptable and valid. > > What it should mean to you is: > > 3. SHOULD This word, or the adjective "RECOMMENDED", mean that there > may exist valid reasons in particular circumstances to ignore a > particular item, but the full implications must be understood and > carefully weighed before choosing a different course. > > The all-caps words are defined in RFC 2119. > > However, USEPRO intentionally doesn't put restrictions on what the server > can do, only on what the client may send, so it doesn't really resolve the > issue of what the server should do. In practice, however, I see little > benefit in trying to do a fuzzy match of that line; normally, problems > with control messages come from too much junk you don't want to honor, not > from missing valid control messages that you do want to owner. It's > similar to the situation with e-mail spam: strictly enforcing the relevant > standards tends to get rid of spam and keep valid messages. Well, I have suggested two things here: 1) Accept it in a case-insensitive manner. Such is not a significant deviation that would yield control message spam. 2) Instead of accepting messages that don't have the line (and using "No description."), outright reject those. Such a change could effectively make the SHOULD a MUST (except for the alteration in #1), but would take care of much more control message spam (e.g. the "alteferian" guy - although there are other ways of dealing with him and others). A problem I have is when one states a required syntax but then back it up with SHOULD. To me, required implies MUST, not SHOULD. Any weakening of a requirement means it's not really a requirement but an option or a nullity.
Re: INN and newgroups
Author: Russ Allbery
Date: Sun, 08 Mar 2009 21:01
Date: Sun, 08 Mar 2009 21:01
38 lines
3110 bytes
3110 bytes
"D. Stussy" <spam@bde-arc.ampr.org> writes:
> Well, I have suggested two things here:
> 1) Accept it in a case-insensitive manner. Such is not a significant
> deviation that would yield control message spam.
This I think is a bad idea.
> 2) Instead of accepting messages that don't have the line (and using "No
> description."), outright reject those.
This, however, I think might be a good idea.
> Such a change could effectively make the SHOULD a MUST (except for the
> alteration in #1),
No, it doesn't. The SHOULD doesn't apply to what you think it does; it
applies to using application/news-groupinfo as a MIME type in the body of
the control message.
> A problem I have is when one states a required syntax but then back it
> up with SHOULD. To me, required implies MUST, not SHOULD. Any
> weakening of a requirement means it's not really a requirement but an
> option or a nullity.
That's not what the document says, but this is part of the same confusion
about what the SHOULD applies to. There is no required syntax that's
specified using SHOULD. If you use the MIME type recommended with SHOULD,
the case-sensitivity of the line is a MUST because it's part of the ABNF
syntax. The MIME type isn't a requirement because it's brand new with
this draft of the protocol and declaring all control messages
non-compliant is a rather excessive step.
--
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: INN and newgroups
Author: Adam H. Kerman
Date: Mon, 09 Mar 2009 05:09
Date: Mon, 09 Mar 2009 05:09
9 lines
1601 bytes
1601 bytes
Russ Allbery <rra@stanford.edu> wrote: >"D. Stussy" <spam@bde-arc.ampr.org> writes: >>2) Instead of accepting messages that don't have the line (and using "No >>description."), outright reject those. >This, however, I think might be a good idea. By servers, as a Best Practice, or as a future amendment to the standard?
Re: INN and newgroups
Author: Russ Allbery
Date: Mon, 09 Mar 2009 05:15
Date: Mon, 09 Mar 2009 05:15
25 lines
2188 bytes
2188 bytes
(This is really somewhat irrelevant for news.admin.hierarchies, so
dropping that group.)
"Adam H. Kerman" <ahk@chinet.com> writes:
> Russ Allbery <rra@stanford.edu> wrote:
>>"D. Stussy" <spam@bde-arc.ampr.org> writes:
>>> 2) Instead of accepting messages that don't have the line (and using
>>> "No description."), outright reject those.
>> This, however, I think might be a good idea.
> By servers, as a Best Practice, or as a future amendment to the standard?
In INN's newgroup handler, to avoid creating newsgroups that don't have a
description. The only thing that makes me cautious about doing this is
that there are local sites that use internal control messages to create
local groups, and I'm not sure they all bother with this if they don't
care about group descriptions.
--
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: INN and newgroups
Author: Julien ÉLIE
Date: Mon, 09 Mar 2009 19:42
Date: Mon, 09 Mar 2009 19:42
64 lines
4226 bytes
4226 bytes
Hi Russ,
>> 2) Instead of accepting messages that don't have the line (and using "No
>> description."), outright reject those.
>
> This, however, I think might be a good idea.
Done. It will be shipped with INN 2.5.0-RC1.
I also reactivated (and proof-read) the check on group names (the function
was defined but the way it was called implied it was never called):
# Check the group name. This is partially derived from C News.
# Some checks are commented out if I think they're too strict or
# language-dependent. Your mileage may vary.
sub checkgroupname {
local $_ = shift;
# Whole-name checking.
return 'Empty group name' if (! $_);
return 'Whitespace in group name' if /\s/;
return 'Unsafe group name' if /[\`\/:;]/;
return 'Bad dots in group name' if /^\./ or /\.$/ or /\.\./;
# return 'Group name does not begin/end with alphanumeric'
# if (/^[a-zA-Z0-9].+[a-zA-Z0-9]$/;
return 'Group name begins in control., example., junk. or to.'
if /^(?:control|example|junk|to)\./;
# return 'Group name too long' if length $_ > 128;
my @components = split(/\./);
# Prevent alt.a.b.c.d.e.f.g.w.x.y.z...
return 'Too many components' if $#components > 9;
# Per-component checking.
for (my $i = 0; $i <= $#components; $i++) {
local $_ = $components[$i];
return 'All-numeric name component' if /^[0-9]+$/;
# return 'Name component starts with non-alphanumeric' if /^[a-zA-Z0-9]/;
# return 'Name component does not contain letter' if not /[a-zA-Z]/;
return "`all' or `ctl' used as name component" if /^(?:all|ctl)$/;
# return 'Name component longer than 30 characters' if length $_ > 30;
return 'Uppercase letter(s) in name' if /[A-Z]/;
return 'Illegal character(s) in name' if /[^a-z0-9+_\-]/;
# Sigh, c++ etc. must be allowed.
return 'Repeated punctuation in name' if /--|__|\+\+./;
# return 'Repeated component(s) in name' if ($i + 2 <= $#components
# and $_ eq $components[$i + 1] and $_ eq $components[$i + 2]);
}
return '';
}
If you have suggestions for these checks, feel free to tell.
Note that a whitespace in the group name or uppercase latters normally
cannot be found here (INN lowercases the group name sooner in the script).
--
Julien ÉLIE
« La moitié des hommes politiques sont des bons à rien.
Les autres sont prêts à tout. » (Coluche)
Re: INN and newgroups
Author: Adam H. Kerman
Date: Mon, 09 Mar 2009 22:07
Date: Mon, 09 Mar 2009 22:07
23 lines
2312 bytes
2312 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: >Hi Russ, >>> 2) Instead of accepting messages that don't have the line (and using "No >>> description."), outright reject those. >> This, however, I think might be a good idea. >Done. It will be shipped with INN 2.5.0-RC1. >I also reactivated (and proof-read) the check on group names (the function >was defined but the way it was called implied it was never called): As long as you're rejecting stuff based on bad syntax, how about rejecting newgroup messages for moderated groups in which there's a mismatch in the moderation flag, comparing the Control header to the newsgroups file line or MIME part. >If you have suggestions for these checks, feel free to tell. >Note that a whitespace in the group name or uppercase latters normally >cannot be found here (INN lowercases the group name sooner in the script). Why shouldn't those be rejected? Same argument: Follow syntax, don't second guess a proponent on what was really meant.
Re: INN and newgroups
Author: Peter J Ross
Date: Tue, 10 Mar 2009 14:52
Date: Tue, 10 Mar 2009 14:52
73 lines
4771 bytes
4771 bytes
In news.admin.hierarchies on Mon, 9 Mar 2009 20:42:20 +0100, Julien
ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote:
> Hi Russ,
>
>>> 2) Instead of accepting messages that don't have the line (and using "No
>>> description."), outright reject those.
>>
>> This, however, I think might be a good idea.
>
> Done. It will be shipped with INN 2.5.0-RC1.
> I also reactivated (and proof-read) the check on group names (the function
> was defined but the way it was called implied it was never called):
>
> # Check the group name. This is partially derived from C News.
> # Some checks are commented out if I think they're too strict or
> # language-dependent. Your mileage may vary.
> sub checkgroupname {
> local $_ = shift;
>
> # Whole-name checking.
> return 'Empty group name' if (! $_);
> return 'Whitespace in group name' if /\s/;
> return 'Unsafe group name' if /[\`\/:;]/;
Does this check do anything useful that the per-component check
doesn't?
> return 'Bad dots in group name' if /^\./ or /\.$/ or /\.\./;
> # return 'Group name does not begin/end with alphanumeric'
> # if (/^[a-zA-Z0-9].+[a-zA-Z0-9]$/;
> return 'Group name begins in control., example., junk. or to.'
> if /^(?:control|example|junk|to)\./;
> # return 'Group name too long' if length $_ > 128;
>
> my @components = split(/\./);
> # Prevent alt.a.b.c.d.e.f.g.w.x.y.z...
> return 'Too many components' if $#components > 9;
>
> # Per-component checking.
> for (my $i = 0; $i <= $#components; $i++) {
> local $_ = $components[$i];
> return 'All-numeric name component' if /^[0-9]+$/;
> # return 'Name component starts with non-alphanumeric' if /^[a-zA-Z0-9]/;
> # return 'Name component does not contain letter' if not /[a-zA-Z]/;
> return "`all' or `ctl' used as name component" if /^(?:all|ctl)$/;
> # return 'Name component longer than 30 characters' if length $_ > 30;
> return 'Uppercase letter(s) in name' if /[A-Z]/;
> return 'Illegal character(s) in name' if /[^a-z0-9+_\-]/;
> # Sigh, c++ etc. must be allowed.
> return 'Repeated punctuation in name' if /--|__|\+\+./;
Do final -- and __ need to be allowed?
You might also consider blocking final +++ (or longer)
> # return 'Repeated component(s) in name' if ($i + 2 <= $#components
> # and $_ eq $components[$i + 1] and $_ eq $components[$i + 2]);
> }
> return '';
>}
>
> If you have suggestions for these checks, feel free to tell.
> Note that a whitespace in the group name or uppercase latters normally
> cannot be found here (INN lowercases the group name sooner in the script).
Why not reject such names instead of modifying them?
--
PJR :-)
slrn newsreader v0.9.9p1: http://slrn.sourceforge.net/
extra slrn documentation: http://slrn-doc.sourceforge.net/
newsgroup name validator: http://pjr.lasnobberia.net/usenet/validator
Re: INN and newgroups
Author: Julien ÉLIE
Date: Tue, 10 Mar 2009 20:27
Date: Tue, 10 Mar 2009 20:27
46 lines
3077 bytes
3077 bytes
Hi Peter,
>> return 'Unsafe group name' if /[\`\/:;]/;
>
> Does this check do anything useful that the per-component check
> doesn't?
Nothing more than the following check:
return 'Illegal character(s) in name' if /[^a-z0-9+_\-]/;
I will comment the first one.
>> # Sigh, c++ etc. must be allowed.
>> return 'Repeated punctuation in name' if /--|__|\+\+./;
>
> Do final -- and __ need to be allowed?
They are not with that syntax. Should they be allowed then?
> You might also consider blocking final +++ (or longer)
By the way, where is it said that such names are not valid?
I do not see that in USEFOR.
("poster" should also be rejected.)
>> If you have suggestions for these checks, feel free to tell.
>> Note that a whitespace in the group name or uppercase latters normally
>> cannot be found here (INN lowercases the group name sooner in the script).
>
> Why not reject such names instead of modifying them?
I will remove the lowercase function.
Control: NewGroup fr.TesT
was read as:
Control: newgroup fr.test
--
Julien ÉLIE
« Quand j'étais petit, je séchais la natation. » (Philippe Geluck)
Re: INN and newgroups
Author: Julien ÉLIE
Date: Tue, 10 Mar 2009 20:31
Date: Tue, 10 Mar 2009 20:31
33 lines
2622 bytes
2622 bytes
Hi Adam, > As long as you're rejecting stuff based on bad syntax, how about rejecting > newgroup messages for moderated groups in which there's a mismatch in the > moderation flag, comparing the Control header to the newsgroups file line > or MIME part. That's a good idea; I will do that. >>If you have suggestions for these checks, feel free to tell. >>Note that a whitespace in the group name or uppercase latters normally >>cannot be found here (INN lowercases the group name sooner in the script). > > Why shouldn't those be rejected? Same argument: Follow syntax, don't > second guess a proponent on what was really meant. I agree with following syntax. However, I have doubts about a few rules we should enforce. (Why "--" wouldn't be allowed for instance?) As for descriptions, I only check if it is not empty. Should other things (besides its not containing " (Moderated)$" when the group is moderated) be checked? -- Julien ÉLIE « Je vais t'apprendre à chasser... Nous commencerons par les marcassins, et puis ensuite, nous passerons aux patrouilles romaines, et enfin aux sangliers ! » (Astérix)
Re: INN and newgroups
Author: Russ Allbery
Date: Tue, 10 Mar 2009 20:34
Date: Tue, 10 Mar 2009 20:34
27 lines
2404 bytes
2404 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
>> You might also consider blocking final +++ (or longer)
>
> By the way, where is it said that such names are not valid?
They're valid, actually. I'm not sure if we really want to block them.
> I do not see that in USEFOR.
> ("poster" should also be rejected.)
Yes.
> I will remove the lowercase function.
> Control: NewGroup fr.TesT
> was read as:
> Control: newgroup fr.test
The newgroup part actually does have to be case-insensitive (as does the
moderated flag), so don't remove the lowercase function for the whole
thing.
--
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: INN and newgroups
Author: Julien ÉLIE
Date: Tue, 10 Mar 2009 20:41
Date: Tue, 10 Mar 2009 20:41
22 lines
2476 bytes
2476 bytes
Hi Russ, >> Control: NewGroup fr.TesT >> was read as: >> Control: newgroup fr.test > > The newgroup part actually does have to be case-insensitive (as does the > moderated flag), so don't remove the lowercase function for the whole > thing. Why is it case-insensitive? (It is not said in USEPRO. Only <path-identity> is said to.) A newsgroup name could contain mixed-case characters (by USEFOR) and we lowercase it... Are there people sending things like "NewGroup fr.TesT"? -- Julien ÉLIE « The most effective way to remember your wife's birthday is to forget it once... » (Nash)
Re: INN and newgroups
Author: Julien ÉLIE
Date: Tue, 10 Mar 2009 20:48
Date: Tue, 10 Mar 2009 20:48
20 lines
2422 bytes
2422 bytes
Hi, > return 'Uppercase letter(s) in name' if /[A-Z]/; > return 'Illegal character(s) in name' if /[^a-z0-9+_\-]/; Hmm... Maybe I will remove that because otherwise it will break possible future spread of UTF-8 newsgroup names. If non-ASCII names are one day standardized, they will be rejected by the versions of INN which have that check. I reckon it is bad for future compatibility. Any thoughts? -- Julien ÉLIE « -- Ils s'arrêtaient tous les jours à 5 heures, pour boire de l'eau chaude... -- Je prendrai un nuage de lait, je vous prie. » (Astérix)
Re: INN and newgroups
Author: Russ Allbery
Date: Tue, 10 Mar 2009 21:18
Date: Tue, 10 Mar 2009 21:18
17 lines
2411 bytes
2411 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> Why is it case-insensitive? (It is not said in USEPRO. Only
> <path-identity> is said to.) A newsgroup name could contain mixed-case
> characters (by USEFOR) and we lowercase it...
USEPRO does say that the newgroup and moderated keywords are
case-insensitive, but you may have to know how to read ABNF. Quoted
strings in ABNF are case-insensitive by definition.
The newsgroup *name* is not case-insensitive.
--
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: INN and newgroups
Author: Peter J Ross
Date: Tue, 10 Mar 2009 21:30
Date: Tue, 10 Mar 2009 21:30
61 lines
3627 bytes
3627 bytes
In news.admin.hierarchies on Tue, 10 Mar 2009 21:27:49 +0100, Julien
ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote:
> Hi Peter,
>
>>> return 'Unsafe group name' if /[\`\/:;]/;
>>
>> Does this check do anything useful that the per-component check
>> doesn't?
>
> Nothing more than the following check:
>
> return 'Illegal character(s) in name' if /[^a-z0-9+_\-]/;
>
> I will comment the first one.
Thanks.
>>> # Sigh, c++ etc. must be allowed.
>>> return 'Repeated punctuation in name' if /--|__|\+\+./;
>>
>> Do final -- and __ need to be allowed?
>
> They are not with that syntax. Should they be allowed then?
OK, I was reading it as if the "." applied to the -- and the __. You
write the kind of regexes that confuse newbies!
>> You might also consider blocking final +++ (or longer)
>
> By the way, where is it said that such names are not valid?
>
> I do not see that in USEFOR.
USEFOR isn't a standard yet. The README at ftp.isc.org is very close
to being a standard, as is the INN code. But neither of them is
*fixed*.
> ("poster" should also be rejected.)
Please explain. What's wrong with "poster" as a newsgroup name
component?
>>> If you have suggestions for these checks, feel free to tell.
>>> Note that a whitespace in the group name or uppercase latters normally
>>> cannot be found here (INN lowercases the group name sooner in the script).
>>
>> Why not reject such names instead of modifying them?
>
> I will remove the lowercase function.
> Control: NewGroup fr.TesT
> was read as:
> Control: newgroup fr.test
Thanks again.
--
PJR :-)
slrn newsreader v0.9.9p1: http://slrn.sourceforge.net/
extra slrn documentation: http://slrn-doc.sourceforge.net/
newsgroup name validator: http://pjr.lasnobberia.net/usenet/validator
Re: INN and newgroups
Author: Julien ÉLIE
Date: Tue, 10 Mar 2009 21:30
Date: Tue, 10 Mar 2009 21:30
18 lines
2283 bytes
2283 bytes
Hi Russ, > Quoted strings in ABNF are case-insensitive by definition. Oh, I missed that. Thanks!! > The newsgroup *name* is not case-insensitive. OK. -- Julien ÉLIE « -- Ils s'arrêtaient tous les jours à 5 heures, pour boire de l'eau chaude... -- Je prendrai un nuage de lait, je vous prie. » (Astérix)
Re: INN and newgroups
Author: Russ Allbery
Date: Tue, 10 Mar 2009 21:37
Date: Tue, 10 Mar 2009 21:37
19 lines
2364 bytes
2364 bytes
Peter J Ross <pjr@example.invalid> writes:
> Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote:
>> By the way, where is it said that such names are not valid?
>> I do not see that in USEFOR.
> USEFOR isn't a standard yet. The README at ftp.isc.org is very close
> to being a standard, as is the INN code. But neither of them is
> *fixed*.
USEFOR and USEPRO are the references against which INN's code should be
maintained, but INN may of course apply additional restrictions where they
make sense.
--
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: INN and newgroups
Author: Peter J Ross
Date: Tue, 10 Mar 2009 21:38
Date: Tue, 10 Mar 2009 21:38
29 lines
2852 bytes
2852 bytes
In news.admin.hierarchies on Tue, 10 Mar 2009 21:48:50 +0100, Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: > Hi, > >> return 'Uppercase letter(s) in name' if /[A-Z]/; >> return 'Illegal character(s) in name' if /[^a-z0-9+_\-]/; > > Hmm... Maybe I will remove that because otherwise it will break possible > future spread of UTF-8 newsgroup names. If non-ASCII names are one day > standardized, they will be rejected by the versions of INN which have > that check. > I reckon it is bad for future compatibility. > > Any thoughts? Please don't remove that check. The only alternative to US-ASCII envisioned or permitted by RFC 3977 is Unicode, and I doubt that we're within ten years of having Unicode universally understood. -- PJR :-) slrn newsreader v0.9.9p1: http://slrn.sourceforge.net/ extra slrn documentation: http://slrn-doc.sourceforge.net/ newsgroup name validator: http://pjr.lasnobberia.net/usenet/validator
Re: INN and newgroups
Author: Julien ÉLIE
Date: Tue, 10 Mar 2009 21:51
Date: Tue, 10 Mar 2009 21:51
29 lines
2564 bytes
2564 bytes
Hi Peter,
>> ("poster" should also be rejected.)
>
> Please explain. What's wrong with "poster" as a newsgroup name
> component?
Not as a component; I spoke about a newsgroup named *only* "poster".
It is currently not checked (contrary to "control", "to", "example"
or "junk").
As for components, only "all" and "ctl" are reserved.
>>> Why not reject such names instead of modifying them?
>>
>> I will remove the lowercase function.
>> Control: NewGroup fr.TesT
>> was read as:
>> Control: newgroup fr.test
>
> Thanks again.
Done only for "fr.TesT".
--
Julien ÉLIE
« Se marier, c'est partager à deux les problèmes que l'on n'aurait pas eus tout seul. »
Re: INN and newgroups
Author: D. Stussy
Date: Tue, 10 Mar 2009 21:57
Date: Tue, 10 Mar 2009 21:57
67 lines
4556 bytes
4556 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:gp6jbm$iqj$1@news.trigofacile.com... > >> Control: NewGroup fr.TesT > >> was read as: > >> Control: newgroup fr.test > > > > The newgroup part actually does have to be case-insensitive (as does the > > moderated flag), so don't remove the lowercase function for the whole > > thing. > > Why is it case-insensitive? (It is not said in USEPRO. Only <path-identity> > is said to.) A newsgroup name could contain mixed-case characters (by USEFOR) > and we lowercase it... > > Are there people sending things like "NewGroup fr.TesT"? It's my understanding that upper case in group names is illegal. However, the hierarchies adobe.* and corel.* appear to have mixed case group names that aren't simply errors for other groups: Adobe.Acrobat.3D 0000000052 0000000001 n Adobe.Encore2.Creating.Final.Discs 0000000016 0000000001 n Adobe.Encore2.Error.Messages 0000000036 0000000001 n Adobe.Encore2.Importing.Assets 0000000007 0000000001 n Adobe.Encore2.Installation.Launch 0000000068 0000000001 n Adobe.Encore2.Menus.Buttons 0000000084 0000000001 n Adobe.Encore2.Subtitles 0000000013 0000000001 n Adobe.Encore2.Timelines.Chapters 0000000015 0000000001 n Adobe.Encore2.Video.Handling 0000000046 0000000001 n adobe.LicenseMangager.ALM 0000000102 0000000001 n adobe.createPDF.online 0000000073 0000000001 n adobe.createpdf.online 0000000000 0000000001 y (Same group name except for case - but see which one has posts) corel.CorelDRAW11 0000000026 0000000001 n corel.CorelDRAWX4 0000000002 0000000001 n corel.CorelDRAW_older_versions 0000000015 0000000001 n corel.PaintShopPhotoAlbum4 0000000001 0000000001 n corel.PaintShopPro8 0000000052 0000000001 n corel.PaintShopPro9 0000000073 0000000001 n corel.PaintShopProPhotoX2 0000000813 0000000001 n corel.PaintShopPro_Graphics 0000001561 0000000001 n corel.PaintShopPro_Photography 0000007606 0000000001 n corel.PaintShopPro_Scrapbooking 0000000085 0000000001 n corel.PaintShopPro_Scripting 0000000153 0000000001 n corel.Painter 0000000103 0000000001 n corel.Paradox 0000000095 0000000001 n corel.Paradox_Obj_Pal 0000000004 0000000001 n corel.PhotoPaint_older_versions 0000000009 0000000001 n corel.PrintHouse_Magic 0000000001 0000000001 n corel.QuattroPro12 0000000074 0000000001 n corel.Ventura-FAQ 0000000001 0000000001 n corel.Ventura10 0000000281 0000000001 n corel.WordPerfect11 0000000047 0000000001 n corel.WordPerfect12 0000000234 0000000001 n corel.WordPerfect_Linux 0000000038 0000000001 n corel.WordPerfect_older_versions 0000000064 0000000001 n I have set my system to accept posts to these groups but not propagate them or accept posts originating from my system for them. If these are in fact "illegal" groups, we need to UDP their sponsoring servers.
Re: INN and newgroups
Author: Russ Allbery
Date: Tue, 10 Mar 2009 22:01
Date: Tue, 10 Mar 2009 22:01
18 lines
2281 bytes
2281 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> writes:
> Hmm... Maybe I will remove that because otherwise it will break
> possible future spread of UTF-8 newsgroup names. If non-ASCII names are
> one day standardized, they will be rejected by the versions of INN which
> have that check. I reckon it is bad for future compatibility.
>
> Any thoughts?
I'm torn. USEFOR didn't make the plunge in part because we haven't done
the protocol work really required to use UTF-8 safely, such as standardize
a canonicalization method.
--
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: INN and newgroups
Author: D. Stussy
Date: Tue, 10 Mar 2009 22:02
Date: Tue, 10 Mar 2009 22:02
18 lines
2306 bytes
2306 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:gp6jpi$j2i$1@news.trigofacile.com... > > return 'Uppercase letter(s) in name' if /[A-Z]/; > > return 'Illegal character(s) in name' if /[^a-z0-9+_\-]/; > > Hmm... Maybe I will remove that because otherwise it will break possible > future spread of UTF-8 newsgroup names. If non-ASCII names are one day > standardized, they will be rejected by the versions of INN which have > that check. > I reckon it is bad for future compatibility. > > Any thoughts? When UTF-8 names are officially approved, deal with it then. Until that time, I see no reason to remove it. Systems that want UTF-8 names will upgrade.
Re: INN and newgroups
Author: Peter J Ross
Date: Tue, 10 Mar 2009 22:07
Date: Tue, 10 Mar 2009 22:07
34 lines
3226 bytes
3226 bytes
In news.admin.hierarchies on Tue, 10 Mar 2009 14:37:34 -0700, Russ Allbery <rra@stanford.edu> wrote: > Peter J Ross <pjr@example.invalid> writes: >> Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: > >>> By the way, where is it said that such names are not valid? >>> I do not see that in USEFOR. > >> USEFOR isn't a standard yet. The README at ftp.isc.org is very close >> to being a standard, as is the INN code. But neither of them is >> *fixed*. > > USEFOR and USEPRO are the references against which INN's code should be > maintained, but INN may of course apply additional restrictions where they > make sense. I disagree. USEFOR and USEPRO are no more authoritative than Son-of-RFC1036 or GNKSA at present. INN should be required to conform to RFC 3977 and some older standards, such as 1036 and (2)822. INN should *not* be required to conform to a controversial set of documents that might change tomorrow if the authors of the documents can be persuaded that a change is needed. This discussion is rather vague and very wide-ranging, so if you'd rather switch to news.admin.misc or news.misc, I'll not complain. -- PJR :-) slrn newsreader v0.9.9p1: http://slrn.sourceforge.net/ extra slrn documentation: http://slrn-doc.sourceforge.net/ newsgroup name validator: http://pjr.lasnobberia.net/usenet/validator
Re: INN and newgroups
Author: Peter J Ross
Date: Tue, 10 Mar 2009 22:19
Date: Tue, 10 Mar 2009 22:19
46 lines
3328 bytes
3328 bytes
In news.admin.hierarchies on Tue, 10 Mar 2009 14:57:58 -0700, D. Stussy <spam@bde-arc.ampr.org> wrote: > "Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message > news:gp6jbm$iqj$1@news.trigofacile.com... >> >> Control: NewGroup fr.TesT >> >> was read as: >> >> Control: newgroup fr.test >> > >> > The newgroup part actually does have to be case-insensitive (as does > the >> > moderated flag), so don't remove the lowercase function for the whole >> > thing. >> >> Why is it case-insensitive? (It is not said in USEPRO. Only > <path-identity> >> is said to.) A newsgroup name could contain mixed-case characters (by > USEFOR) >> and we lowercase it... >> >> Are there people sending things like "NewGroup fr.TesT"? > > It's my understanding that upper case in group names is illegal. It's strongly deprecated. > However, > the hierarchies adobe.* and corel.* appear to have mixed case group names > that aren't simply errors for other groups: Are those hierarchies really part of Usenet? <...> > If these are in fact > "illegal" groups, we need to UDP their sponsoring servers. Why? -- PJR :-) slrn newsreader v0.9.9p1: http://slrn.sourceforge.net/ extra slrn documentation: http://slrn-doc.sourceforge.net/ newsgroup name validator: http://pjr.lasnobberia.net/usenet/validator
Re: INN and newgroups
Author: Russ Allbery
Date: Tue, 10 Mar 2009 23:15
Date: Tue, 10 Mar 2009 23:15
46 lines
4090 bytes
4090 bytes
Peter J Ross <pjr@example.invalid> writes:
> Russ Allbery <rra@stanford.edu> wrote:
>> USEFOR and USEPRO are the references against which INN's code should be
>> maintained, but INN may of course apply additional restrictions where
>> they make sense.
> I disagree. USEFOR and USEPRO are no more authoritative than
> Son-of-RFC1036 or GNKSA at present.
I think this would be the wrong choice to make in deciding how to maintain
INN going forward. Extensive work has been put into USEFOR and USEPRO,
including quite a few compromises between forward progress and backward
compatibility, and the result is, in my opinion, clearly superior to
attempting to implement Son-of as-is. Part of the reason why I've been as
involved in the standardization process as I have is to be sure that
nothing in the new standard is going to break things and that it's
possible to implement it in software reasonably. I'm fairly confident
that this is the case, and I think that's been born out in the compliance
work that Julien has been doing.
> INN should be required to conform to RFC 3977 and some older standards,
> such as 1036 and (2)822. INN should *not* be required to conform to a
> controversial set of documents that might change tomorrow if the authors
> of the documents can be persuaded that a change is needed.
This is not an accurate characterization of the current state of the
USEFOR and USEPRO drafts. Both of them have already gone through
IETF-wide Last Call and are severely locked down in terms of changes that
will be made at this point. You would need to persuade not only the
document editor but also the working group chairs, and for USEFOR, the
IESG.
> This discussion is rather vague and very wide-ranging, so if you'd
> rather switch to news.admin.misc or news.misc, I'll not complain.
It's a technical discussion, and as such news.software.nntp is the right
place, IMO. If someone wants to talk about it in one of those groups, I
certainly am not going to complain; however, I don't read either group, so
the discussion would be with a different set of participants. :)
--
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: INN and newgroups
Author: Adam H. Kerman
Date: Wed, 11 Mar 2009 03:18
Date: Wed, 11 Mar 2009 03:18
36 lines
2719 bytes
2719 bytes
Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: >Hi Adam, >>As long as you're rejecting stuff based on bad syntax, how about rejecting >>newgroup messages for moderated groups in which there's a mismatch in the >>moderation flag, comparing the Control header to the newsgroups file line >>or MIME part. >That's a good idea; I will do that. Excellent. >>>If you have suggestions for these checks, feel free to tell. >>>Note that a whitespace in the group name or uppercase latters normally >>>cannot be found here (INN lowercases the group name sooner in the script). >>Why shouldn't those be rejected? Same argument: Follow syntax, don't >>second guess a proponent on what was really meant. >I agree with following syntax. As Russ reminds us, group names are case sensitive, so it seems to me that INN MUST NOT change case. If group names with upper case letters aren't allowed locally by default, then INN should reject in lieu of changing case. >However, I have doubts about a few rules we should enforce. >(Why "--" wouldn't be allowed for instance?) I have no knowledge of why that might break somehing, sorry. >As for descriptions, I only check if it is not empty. Should other things >(besides its not containing " (Moderated)$" when the group is moderated) >be checked? Reject the desription if it includes the word "discussion" (case insensitive).
Re: INN and newgroups
Author: Russ Allbery
Date: Wed, 11 Mar 2009 03:32
Date: Wed, 11 Mar 2009 03:32
33 lines
2399 bytes
2399 bytes
"Adam H. Kerman" <ahk@chinet.com> writes:
> As Russ reminds us, group names are case sensitive, so it seems to me
> that INN MUST NOT change case. If group names with upper case letters
> aren't allowed locally by default, then INN should reject in lieu of
> changing case.
I suspect this is a long-standing bug.
> Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote:
>> However, I have doubts about a few rules we should enforce. (Why "--"
>> wouldn't be allowed for instance?)
> I have no knowledge of why that might break somehing, sorry.
I don't think it was that it would break anything. I think it's an old
naming convention. The newgroup control message handler has enforced
various ad hoc naming conventions historically, some of which were good
ideas and some of which weren't.
> Reject the desription if it includes the word "discussion" (case
> insensitive).
windlord:~/data/news> zgrep -v ^alt newsgroups.gz | grep -i discussion | wc -l
2351
Heh. No.
--
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: INN and newgroups
Author: Russ Allbery
Date: Wed, 11 Mar 2009 03:40
Date: Wed, 11 Mar 2009 03:40
26 lines
2079 bytes
2079 bytes
Russ Allbery <rra@stanford.edu> writes:
> "Adam H. Kerman" <ahk@chinet.com> writes:
>> As Russ reminds us, group names are case sensitive, so it seems to me
>> that INN MUST NOT change case. If group names with upper case letters
>> aren't allowed locally by default, then INN should reject in lieu of
>> changing case.
> I suspect this is a long-standing bug.
Indeed, it's been present since the first version of controlchan, added in
INN 2.3.
if ($hdrval{Control} =~ /\s/) {
$hdrval{Control} =~ /^(\S+)(\s+)?(.+)?/;
$progname = lc($1);
@progparams = split(/\s+/, lc($3));
} else {
$progname = lc($hdrval{Control});
}
--
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: INN and newgroups
Author: Julien ÉLIE
Date: Sat, 04 Apr 2009 10:57
Date: Sat, 04 Apr 2009 10:57
45 lines
2592 bytes
2592 bytes
Hi Adam,
>>>As long as you're rejecting stuff based on bad syntax, how about rejecting
>>>newgroup messages for moderated groups in which there's a mismatch in the
>>>moderation flag, comparing the Control header to the newsgroups file line
>>>or MIME part.
>
>>That's a good idea; I will do that.
>
> Excellent.
Done.
# Check the description.
sub checkdescription {
local $_ = shift;
my ($desc, $flag) = @_;
# Whole-name checking.
return 'Empty description' if (! $desc);
return 'Moderation status mismatch'
if ($desc =~ / \(Moderated\)$/) and $flag eq 'y';
return 'Moderation status mismatch'
if ($desc !~ / \(Moderated\)$/) and $flag eq 'm';
return 'Reserved "(Moderated)" substring used'
if ($desc =~ /\(Moderated\).+$/);
return '';
}
All according to USEPRO:
The <newsgroup-description> MUST NOT contain any occurrence of the string
"(Moderated)" within it. Moderated newsgroups MUST be marked by appending
the case sensitive text " (Moderated)" at the end.
--
Julien ÉLIE
« J'aurais pu faire forêt comble. » (Astérix)
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