Article View: news.software.nntp
Article #32440Re: crossposting to local group
From: Aidan Cully
Date: Sun, 25 Oct 1998 00:00
Date: Sun, 25 Oct 1998 00:00
42 lines
1924 bytes
1924 bytes
In news.software.nntp, A.Addicks@kpn.com (Andre Addicks) wrote:
> Hello,
>
> I have the following problem:
>
> On our newsserver (inn 1.7.2) we have for instance the newsgroups alt.test and
> a local newsgroup local.test. When an external user is posting (using his
> provider newsserver) to the alt.test group and he also does a crossposting to
> the local.test group (he knows that the group exists with us), then the article
> is placed in both groups on our newsserver.
> Is there a possibility to block external (cross)-postings to local groups ?
If you want the external site to be able to feed you local groups as well
as other groups, none that I'm aware of, unless you want to write/modify a
perl filter to do this for you. Something like
sub filter_art {
@ngarray = split(/,/, $hdr{'Newsgroups'});
$inlocal = undef;
$inother = undef;
foreach $i (@ngarray) {
if ($i =~ /^local\..*/) {
$inlocal = 1;
} else {
$inother = 1;
}
}
if ($inlocal == 1 && $inother == 1) {
return "Crossposted between local and foreign group.";
}
return "";
}
Install it in /news/bin/filter/filter_innd.pl. This is completely
untested, but it should get you started.
HTH,
--aidan
--
Aidan Cully "Umm.. Could you call back? My house is on fire."
Panix Staff --Tom Waits
aidan@panix.com
Technical Details
Message-ID:
<70vqd7$3e9@news1.panix.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-mailReferences:
<70v4sa$a82$1@news.kpn.com>Show Full Headers
Complete Article Headers
Message-ID: <70vqd7$3e9@news1.panix.com> Subject: Re: crossposting to local group Date: Sun, 25 Oct 1998 00:00:00 +0000 From: aidan@panix.com (Aidan Cully) References: <70v4sa$a82$1@news.kpn.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: 404933339 Distribution: inet Organization: PANIX -- Public Access Networks Corp. Newsgroups: news.software.nntp