Article View: news.software.nntp
Article #46326Re: filter tutorial
From: Andrew Gierth
Date: Sun, 07 May 2000 00:00
Date: Sun, 07 May 2000 00:00
24 lines
1422 bytes
1422 bytes
>>>>> "Stupid" == Stupid <stupidlui@cuhk.edu.hk> writes:
Stupid> any useful filtering tutorals on the web?
Stupid> I want to filter people cancelling messages.
If you want to stop your local users from posting cancels, then
put something like this in filter_nnrpd.pl:
sub filter_post
{
return "cancels not permitted here"
if ($hdr{Control} =~ /^cancel/i);
return "supersedes not permitted here"
if (exists($hdr{Supersedes}));
return "";
}
If you want to stop cancels from actually taking effect, then look
at the -C flag to innd.
--
Andrew.
Technical Details
Message-ID:
<87itwqqrgv.fsf@erlenstar.demon.co.uk>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:
<39158895.D3B09B2B@cuhk.edu.hk>Show Full Headers
Complete Article Headers
Message-ID: <87itwqqrgv.fsf@erlenstar.demon.co.uk> Subject: Re: filter tutorial Date: Sun, 07 May 2000 00:00:00 +0000 From: Andrew Gierth <andrew@erlenstar.demon.co.uk> References: <39158895.D3B09B2B@cuhk.edu.hk> 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: 620307969 X-Mayan-Date: Long count = 12.19.7.3.7; tzolkin = 6 Manik; haab = 10 Uo X-Complaints-To: andrew@erlenstar.demon.co.uk Organization: disorganised X-Attribution: AG X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29 X-P-Persistent-Headers: are a bad idea. Newsgroups: news.software.nntp X-Post-Filter: postfilter v0.6 alpha