Article View: news.software.nntp
Article #80513Re: INN and newgroups
From: 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)
Technical Details
Message-ID:
<gr7ei7$eua$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.ams.giganews.com!nntp.giganews.com!weretis.net!feeder1.news.weretis.net!news.trigofacile.com!not-for-mailReferences:
<AR039.000000.000@uce.gov> <gp3rgq$vod$1@news.trigofacile.com> <gp43vs$o0u$1@news.albasani.net> <gp6ipq$ia3$1@news.trigofacile.com> <gp7aim$jeg$2@news.albasani.net>Show Full Headers
Complete Article Headers
Message-ID: <gr7ei7$eua$1@news.trigofacile.com> Subject: Re: INN and newgroups Date: Sat, 4 Apr 2009 12:57:33 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <AR039.000000.000@uce.gov> <gp3rgq$vod$1@news.trigofacile.com> <gp43vs$o0u$1@news.albasani.net> <gp6ipq$ia3$1@news.trigofacile.com> <gp7aim$jeg$2@news.albasani.net> 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.ams.giganews.com!nntp.giganews.com!weretis.net!feeder1.news.weretis.net!news.trigofacile.com!not-for-mail Newsgroups: news.software.nntp,news.admin.hierarchies Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 45 NNTP-Posting-Host: amontpellier-152-1-9-203.w81-251.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=original Content-Transfer-Encoding: 8bit X-Trace: news.trigofacile.com 1238842759 15306 81.251.36.203 (4 Apr 2009 X-Complaints-To: abuse@trigofacile.com NNTP-Posting-Date: Sat, 4 Apr 2009 10:59:19 +0000 (UTC) In-Reply-To: <gp7aim$jeg$2@news.albasani.net> X-MSMail-Priority: Normal X-Newsreader: Microsoft Windows Mail 6.0.6001.18000 X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049