Thread View: news.software.nntp
9 messages
9 total messages
Started by toylet
Sat, 13 Mar 2004 15:51
sample perl filters
Author: toylet
Date: Sat, 13 Mar 2004 15:51
Date: Sat, 13 Mar 2004 15:51
10 lines
1451 bytes
1451 bytes
Anyone got a good site to recommend that contains loads of sample perl codes for use with innd's filters? -- .~. Might, Courage, Vision. In Linux We Trust. / v \ http://www.linux-sxs.org /( _ )\ Linux 2.4.22-xfs ^ ^ 11:50pm up 1 day 3:15 load average: 0.00 0.24 0.59
Re: sample perl filters
Author: johnny bravo
Date: Sat, 13 Mar 2004 21:40
Date: Sat, 13 Mar 2004 21:40
12 lines
1391 bytes
1391 bytes
On Sat, 13 Mar 2004 23:51:02 +0800, toylet <toylet_at_mail.hongkong.com> wrote: > >Anyone got a good site to recommend that contains loads of sample perl >codes for use with innd's filters? I get this one: http://www.visi.com/~barr/INN.html http://www.landfield.com/usenet/usenet-software.html Bye
Re: sample perl filters
Author: Terminator
Date: Sun, 14 Mar 2004 03:37
Date: Sun, 14 Mar 2004 03:37
60 lines
2848 bytes
2848 bytes
# vi /usr/bin/filter/filter_nnrpd.pl
if ($hdr{"Control"}) {
$rval = "Control message is not allowed";
}
-------
if ($hdr{"Newsgroups"} =~ ",") {
$rval = "Crosspost is not allowed";
}
-------
if ($hdr{"Subject"} =~ /notallowedwords/i) {
$rval = "Spam is not acceptable here...";
}
-------
if ($body =~ /make.*money/i) {
$rval = "make money is reject here..." ;
}
if ($body =~ /www\.sex\.com|www\.xxx\.com/i) {
$rval = "make money is reject here..." ;
}
--------------------------
if ($body =~ /www.sex.com/i){
$rval = "spam is not allowed here..." ;
}
if ($body =~ /www\.sex\.com|www\.xxx\.com/i) {
---------------------------
my $val = "";
use POSIX;
$modify_headers = "true";
$hdr{"X-Date"} = $hdr{"Date"};
$hdr{"Date"} = strftime("%a, %e %b %Y %T +0800", localtime);
$hdr{"Date"} =~ s/^([A-Z][a-z][a-z], ) /$1/;
"toylet" <toylet_at_mail.hongkong.com> wrote in message news:40532dd6$1_1@rain.i-cable.com...
Anyone got a good site to recommend that contains loads of sample perl
codes for use with innd's filters?
--
.~. Might, Courage, Vision. In Linux We Trust.
/ v \ http://www.linux-sxs.org
/( _ )\ Linux 2.4.22-xfs
^ ^ 11:50pm up 1 day 3:15 load average: 0.00 0.24 0.59
~ Let us linux ~
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Re: sample perl filters
Author: toylet
Date: Sun, 14 Mar 2004 13:50
Date: Sun, 14 Mar 2004 13:50
12 lines
1433 bytes
1433 bytes
toylet wrote: > Anyone got a good site to recommend that contains loads of sample perl > codes for use with innd's filters? > thank you. -- .~. Might, Courage, Vision. In Linux We Trust. / v \ http://www.linux-sxs.org /( _ )\ Linux 2.4.22-xfs ^ ^ 9:48pm up 2 days 1:13 load average: 1.00 1.00 0.96
Re: sample perl filters
Author: Terminator
Date: Sun, 14 Mar 2004 15:10
Date: Sun, 14 Mar 2004 15:10
26 lines
2273 bytes
2273 bytes
I am wondering why so many websites teach how to set up an INN server, but so little about how to set a filter and how to use suck.
It cost me one year to collect those filters and learn how to use suck.
Now I can not find anything about managing webpage for INN, maybe it will cost me an other year to find out ~
"toylet" <toylet_at_mail.hongkong.com> wrote in message news:4054630a$1_1@rain.i-cable.com...
toylet wrote:
> Anyone got a good site to recommend that contains loads of sample perl
> codes for use with innd's filters?
>
thank you.
--
.~. Might, Courage, Vision. In Linux We Trust.
/ v \ http://www.linux-sxs.org
/( _ )\ Linux 2.4.22-xfs
^ ^ 9:48pm up 2 days 1:13 load average: 1.00 1.00 0.96
~ Let us linux ~
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Re: sample perl filters
Author: Paul Tomblin
Date: Sun, 14 Mar 2004 18:36
Date: Sun, 14 Mar 2004 18:36
14 lines
1611 bytes
1611 bytes
In a previous article, "Terminator" <terminator@lisa.hk.com> said:
>I am wondering why so many websites teach how to set up an INN server,
>but so little about how to set a filter and how to use suck.
>It cost me one year to collect those filters and learn how to use suck.
Now that you know, why don't *you* write something?
--
Paul Tomblin <ptomblin@xcski.com> http://xcski.com/blogs/pt/
Windows gives you a nice view of clouds so you can't see any potentially
useful boot time messages.
-- Bill Hay
Re: sample perl filters
Author: Aioe
Date: Sun, 14 Mar 2004 18:42
Date: Sun, 14 Mar 2004 18:42
11 lines
1161 bytes
1161 bytes
toylet <toylet_at_mail.hongkong.com> wrote: > > Anyone got a good site to recommend that contains loads of sample perl > codes for use with innd's filters? > http://aioe.cjb.net/inn/modules.php?op=modload&name=News&file=index&catid=&topic=5 byz
Re: sample perl filters
Author: Terminator
Date: Mon, 15 Mar 2004 03:13
Date: Mon, 15 Mar 2004 03:13
24 lines
1942 bytes
1942 bytes
Wow, great ~
Do you have something in English ?
Thanks ~
"Aioe" <estasi@aioe.org> ���g��l�� news:4054a7fb@x-privat.org...
toylet <toylet_at_mail.hongkong.com> wrote:
>
> Anyone got a good site to recommend that contains loads of sample perl
> codes for use with innd's filters?
>
http://aioe.cjb.net/inn/modules.php?op=modload&name=News&file=index&catid=&topic=5
byz
~ Let us linux ~
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Re: sample perl filters
Author: Aioe
Date: Mon, 15 Mar 2004 10:46
Date: Mon, 15 Mar 2004 10:46
8 lines
1262 bytes
1262 bytes
Terminator wrote: > Wow, great ~ > Do you have something in English ? > Thanks ~ not yet, sorry :L
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