Article View: news.software.nntp
Article #82702Re: unrelated possible bug with C flag?
From: D. Stussy
Date: Thu, 28 Jan 2010 22:30
Date: Thu, 28 Jan 2010 22:30
49 lines
4033 bytes
4033 bytes
"Julien ΓLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message news:hjt1a2$u54$1@news.trigofacile.com... > >> I am following here the law "be liberal in what you accept" because innd > >> is not an injecting agent. We will not reject the article because of an > >> error in the syntax of the Followup-To: header. > > > > No argument with the principle. However, if we're at this point, we're > > dealing with articles that have already been accepted into the spool. This > > is not the place to deal with invalid syntax. That should be done in NNRPD > > (for locally submitted articles) and elsewhere in INN for articles from > > peers. > > I do not understand where else you would want to do that. > Here, we are counting how many groups are in the Followup-To: header. > It is our role of *relaying* agent because this count has an impact > on the C option in newsfeeds. Correct - and that's ALL we should be doing at this step. Whitespace doesn't matter. Basically, if the field is specfied (i.e. not empty), the count is the number of commas plus 1. If exactly one (i.e. no commas), then a check to the literal "poster" is performed. Anything more (like checking to see if a group name is specified more than once, is null, etc.) is syntax checking that should be done BEFORE accepting the article. Determining where to feed it is an action taken AFTER acceptance. > Well, I do not mind badly checking this number. I thought it would be > better for our own outgoing peers... Otherwise, we can prevent articles > from being sent to our peers because of ",,,," whereas they should have > received them. Why did we accept such an article to begin with? > > Your suggested patch is trying to perform syntax checking too late in the > > process. These are articles already accepted and stored in the spool. > > Why is it "too late in the process"? Why is it "syntax checking"? > I'm just parsing the header field value, following a laxer and more > liberal syntax, so as to count the number of newsgroups and see whether > "poster" is the only one specified. It's too late because we've already accepted the article - as opposed to rejecting it for bad syntax.
Technical Details
Message-ID:
<hjt36j$1m8$2@snarked.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed101.telia.com!megatron.dk.telia.net!news.astraweb.com!border5.a.newsrouter.astraweb.com!feeder.news-service.com!weretis.net!feeder2.news.weretis.net!news.hub.org!news.snarked.org!not-for-mailReferences:
<hic74m$vi8$1@news.trigofacile.com> <hicf9f$ntj$1@snarked.org> <hiclo9$dd4$1@news.trigofacile.com> <hidmvp$vh1$1@snarked.org> <hitipd$rtb$1@news.trigofacile.com> <hiu2ar$707$1@snarked.org> <hiun2p$2mt$1@news.trigofacile.com> <hj0m9c$g98$1@snarked.org> <hj7qh0$ggu$1@news.trigofacile.com> <hj8csn$cok$1@snarked.org> <hjaiid$f7c$1@news.trigofacile.com> <hjar9t$mq$1@snarked.org> <hjnpm4$f5l$1@news.trigofacile.com> <hjq8r4$s5h$1@news.trigofacile.com> <hjqp78$iis$1@snarked.org> <hjsinn$cst$1@news.trigofacile.com> <hjsvgf$vko$1@snarked.org> <hjt1a2$u54$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <hjt36j$1m8$2@snarked.org> Subject: Re: unrelated possible bug with C flag? Date: Thu, 28 Jan 2010 14:30:31 -0800 From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org> References: <hic74m$vi8$1@news.trigofacile.com> <hicf9f$ntj$1@snarked.org> <hiclo9$dd4$1@news.trigofacile.com> <hidmvp$vh1$1@snarked.org> <hitipd$rtb$1@news.trigofacile.com> <hiu2ar$707$1@snarked.org> <hiun2p$2mt$1@news.trigofacile.com> <hj0m9c$g98$1@snarked.org> <hj7qh0$ggu$1@news.trigofacile.com> <hj8csn$cok$1@snarked.org> <hjaiid$f7c$1@news.trigofacile.com> <hjar9t$mq$1@snarked.org> <hjnpm4$f5l$1@news.trigofacile.com> <hjq8r4$s5h$1@news.trigofacile.com> <hjqp78$iis$1@snarked.org> <hjsinn$cst$1@news.trigofacile.com> <hjsvgf$vko$1@snarked.org> <hjt1a2$u54$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed101.telia.com!megatron.dk.telia.net!news.astraweb.com!border5.a.newsrouter.astraweb.com!feeder.news-service.com!weretis.net!feeder2.news.weretis.net!news.hub.org!news.snarked.org!not-for-mail Newsgroups: news.software.nntp Lines: 49 Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org> NNTP-Posting-Host: 71.118.51.220 X-Trace: snarked.org 1264717843 1736 71.118.51.220 (28 Jan 2010 22:30:43 GMT) X-Complaints-To: newsmaster+complaints@snarked.org NNTP-Posting-Date: Thu, 28 Jan 2010 22:30:43 +0000 (UTC) X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 X-Original-Bytes: 3785