Thread View: news.software.nntp
10 messages
10 total messages
Started by Aioe
Wed, 22 Oct 2008 14:46
Postfilter 0.7.3
Author: Aioe
Date: Wed, 22 Oct 2008 14:46
Date: Wed, 22 Oct 2008 14:46
28 lines
2279 bytes
2279 bytes
Postfilter is a perl filter for Internet Net News (innd) that checks all
messages sent by local users searching for spam and invalid content. It's
released under the BSD license, the same used by INND, so almost everybody
can use it without legal troubles. It's designed for large sites, notably
public news servers.
Today i'm releasing a new version (0.7.3) that includes both bugfixes and
new features. The most important differences between postfilter 0.7.2 and
0.7.3 are:
BUGFIX: 'delete $hdr{'Header'};' instead of '$hdr{'Header'} = undef;'
BUGFIX: now the behaviour of postfilter when an error is found inside
banlist.conf or badwords.conf is configurable.
NEW: The maximum difference between the number of groups in Followup-To
and in Newsgroups can be set
NEW: Articles that include the same groups inside Newsgroups: and
Followup-To: now can be rejected
NEW: Articles that come from TOR exit nodes can be filtered. An external
program shipped with postfilter - postfilter-tor.pl - is able to build a
list of all working exit nodes.
NEW: Added a new tool - postfilter-legal.pl - that is able to query and
expire legal.log
I'm planning to release a new (major) release around Christmas, if somebody
has some feature request, this is the right time to ask for. The future
postfilter 0.8 will allow to set whether accept or reject an article that
is a duplicate of a rejected message so don't ask for this.
Re: Postfilter 0.7.3
Author: Aioe
Date: Wed, 22 Oct 2008 14:51
Date: Wed, 22 Oct 2008 14:51
9 lines
1171 bytes
1171 bytes
Aioe wrote: > Postfilter is a perl filter for Internet Net News (innd) that checks all > messages sent by local users searching for spam and invalid content. it's here: http://news.aioe.org/spip.php?rubrique16 ftp://ftp.aioe.org/Programs/News/Postfilter/postfilter-0.7.3.tar.gz http://ftp.aioe.org/Programs/News/Postfilter/postfilter-0.7.3.tar.gz
Re: Postfilter 0.7.3
Author: Julien ÉLIE
Date: Wed, 22 Oct 2008 17:09
Date: Wed, 22 Oct 2008 17:09
24 lines
1987 bytes
1987 bytes
Hi Aioe, > Today i'm releasing a new version (0.7.3) that includes both bugfixes and > new features. The most important differences between postfilter 0.7.2 and > 0.7.3 are: Great news! > I'm planning to release a new (major) release around Christmas, if somebody > has some feature request, this is the right time to ask for. Maybe something to prevent people from posting approved messages (in a list of moderated newsgroups? or even in unmoderated newsgroups?). Isn't it something used by spammers? Something about cancels and supersedes? -- Julien ÉLIE « -- Il est parti comme il est venu... -- Il ne faisait que passer... » (Astérix)
Re: Postfilter 0.7.3
Author: Ray Banana
Date: Wed, 22 Oct 2008 17:43
Date: Wed, 22 Oct 2008 17:43
25 lines
2443 bytes
2443 bytes
Thus spake Aioe <estasi@aioe.org>
> Today i'm releasing a new version (0.7.3) that includes both bugfixes and
> new features. The most important differences between postfilter 0.7.2 and
> 0.7.3 are:
[...]
> I'm planning to release a new (major) release around Christmas, if somebody
> has some feature request, this is the right time to ask for. The future
> postfilter 0.8 will allow to set whether accept or reject an article that
> is a duplicate of a rejected message so don't ask for this.
,----------------------------------
| my $ctx = Digest::MD5->new;
| $ctx->add($body);
| $md5 = $ctx->b64digest;
`-----------------------------------
I know aioe doesn't allow cancels, so you wouldn't notice, but this
code will classify the typical one-liner ("This message was cancelled
from within Mozilla", etc) as duplicates. Adding the Subject: header
might help.
--
Time flies like an arrow, fruit flies like a Banana.
http://news.motzarella.org
Re: Postfilter 0.7.3
Author: Aioe
Date: Wed, 22 Oct 2008 20:05
Date: Wed, 22 Oct 2008 20:05
53 lines
2213 bytes
2213 bytes
Julien ÉLIE wrote:
> Maybe something to prevent people from posting approved messages (in a
> list of moderated newsgroups?
postfilter does this
--------------
if ( $hdr{'Approved'} ne "" )
{
&syslog_filter( "(Auto)Approved Message -> Approved:$hdr{'Approved'}", 3 );
return 3;
}
-------------
> Something about cancels and supersedes?
cancels are supported, supersedes are mssing.
-------------
if (
(
( $hdr{'Control'} ne "" ) and
( $hdr{'Control'} !~ /^cancel\ /i )
) or
(
( $config{'allow_control_cancel'} eq "false" ) and
(
( $hdr{'Control'} =~ /^cancel\ /i ) or
( $hdr{'Supersedes'} ne "" ) or
( $hdr{'Replaces'} ne "" ) or
( $hdr{'Also-Control'} ne "" )
)
)
)
{
&syslog_filter( "Invalid control message", 1 );
return 1;
}
-------------
i'll release a new version asap (tomorrow or Friday) with this improvement,
thank you.
Re: Postfilter 0.7.3
Author: Aioe
Date: Wed, 22 Oct 2008 20:06
Date: Wed, 22 Oct 2008 20:06
9 lines
1158 bytes
1158 bytes
Ray Banana wrote:
> I know aioe doesn't allow cancels, so you wouldn't notice, but this
> code will classify the typical one-liner ("This message was cancelled
> from within Mozilla", etc) as duplicates. Adding the Subject: header
> might help.
thank you :-)
Re: Postfilter 0.7.3
Author: Jeffrey M. Vinocur
Date: Thu, 23 Oct 2008 01:33
Date: Thu, 23 Oct 2008 01:33
14 lines
1459 bytes
1459 bytes
In article <gdnmpb$1e5$1@news.trigofacile.com>, Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> wrote: > >Maybe something to prevent people from posting approved messages (in a list >of moderated newsgroups? or even in unmoderated newsgroups?). Isn't it >something used by spammers? Perhaps a silly question, but why isn't INN's usual restriction on approved messages (via readers.conf) enough for this? -- Jeffrey M. Vinocur jeff@litech.org
Re: Postfilter 0.7.3
Author: Julien ÉLIE
Date: Thu, 23 Oct 2008 06:18
Date: Thu, 23 Oct 2008 06:18
32 lines
2593 bytes
2593 bytes
Hi Jeffrey,
>>Maybe something to prevent people from posting approved messages (in a list
>>of moderated newsgroups? or even in unmoderated newsgroups?). Isn't it
>>something used by spammers?
>
> Perhaps a silly question, but why isn't INN's usual restriction
> on approved messages (via readers.conf) enough for this?
It could for most usual cases.
However, as I do not know how every moderated newsgroup works, I am a bit scary
to remove "A". I will only give an example of a newsgroup I am aware of:
fr.misc.bavardages.dinosaures Bistro des anciens du Réseau. (Moderated)
It is an *auto*-moderated newsgroup: the moderation address is directed to /dev/null.
The only possible way to send a message to this newsgroup is by adding an Approved:
header.
Yes, I know, it is a weirdness of the French hierarchy. For Usenet dinosaurs :)
Removing "A" prevents people from posting there. As for control messages which
are not cancels, it is less annoying because they are not sent by many.
--
Julien ÉLIE
« If I don't document something, it's usually either for a good reason,
or a bad reason. » (Larry Wall)
Re: Postfilter 0.7.3
Author: Ray Banana
Date: Thu, 23 Oct 2008 07:59
Date: Thu, 23 Oct 2008 07:59
24 lines
2812 bytes
2812 bytes
Thus spake Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> >> Perhaps a silly question, but why isn't INN's usual restriction >> on approved messages (via readers.conf) enough for this? > However, as I do not know how every moderated newsgroup works, I am a bit scary > to remove "A". I will only give an example of a newsgroup I am aware of: > fr.misc.bavardages.dinosaures Bistro des anciens du Réseau. (Moderated) > It is an *auto*-moderated newsgroup: the moderation address is directed to /dev/null. > The only possible way to send a message to this newsgroup is by adding an Approved: > header. > Yes, I know, it is a weirdness of the French hierarchy. For Usenet dinosaurs :) The same applies to alt.sysadmin.recovery and alt.tech-support.recovery. Generally speaking, I prefer a more fine-grained approach to granting Approved: privileges than INN can offer out of the box . That's why I use a post filter similar to aioe's to grant this privilege at user/group level and have the "A" privilege in readers.conf for everyone. -- Time flies like an arrow, fruit flies like a Banana. http://news.motzarella.org
Re: Postfilter 0.7.3
Author: Aioe
Date: Thu, 23 Oct 2008 11:16
Date: Thu, 23 Oct 2008 11:16
8 lines
1182 bytes
1182 bytes
Ray Banana wrote: > The same applies to alt.sysadmin.recovery and alt.tech-support.recovery. do you know other groups with this behaviour? postfilter 0.7.4 will support these groups (i'll release it before the week end)
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