From: Alexey Tourbin <at@turbinal.org>
To: Siyiphus <sisyphus@altlinux.ru>
Subject: [sisyphus] Re: [devel] I: new package (SpamOracle)
Date: Sun, 3 Nov 2002 01:51:04 +0300
Message-ID: <20021102225104.GA26165@homestead.turbinal.org> (raw)
In-Reply-To: <20021101031727.GA16006@homestead.turbinal.org>
[-- Attachment #1.1: Type: text/plain, Size: 541 bytes --]
On Fri, Nov 01, 2002 at 06:17:27AM +0300, at@turbinal.org wrote:
> On Fri, Oct 25, 2002 at 08:23:21PM +0400, Vitaly Lugovsky wrote:
> > В инкоминг приехало:
> >
> > SpamOracle-1.2-alt1.src.rpm
> >
> > Если кто заинтересован - прошу тестировать. Русский
>
> Я заинтересован. Работает хорошо, хотя алгоритм Байеса -- далеко не
> самый эффективный для таких задач. Просто спам однотипный.
>
> Виталий, скажите честно, у вас есть скрипт, который регулярно
> перестраивает базу по крону? Бог велел делиться. :)
OK, может кому пригодится.
[-- Attachment #1.2: spo.pl --]
[-- Type: text/plain, Size: 400 bytes --]
#!/usr/bin/perl
use strict;
use File::Copy 'mv';
my @files = <~/Mail/*>;
my $db = <~> . '/.spamoracle.db';
my $db_new = $db . '.new';
my $db_old = $db . '.old';
my $spamoracle = '/usr/bin/spamoracle';
my @good = grep { -f && !/spam|trash/ } @files;
my @spam = grep { -f && /spam|trash/ } @files;
system "$spamoracle -f $db_new add -v -spam @spam -good @good";
mv $db, $db_old;
mv $db_new, $db;
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2002-11-02 22:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-25 16:23 [sisyphus] " Vitaly Lugovsky
2002-10-25 19:53 ` [sisyphus] Re: [devel] " Aleksandr Blokhin
2002-10-25 18:49 ` Герасимов Дмитрий
2002-10-26 10:39 ` Vitaly Lugovsky
2002-11-02 22:51 ` Alexey Tourbin [this message]
2002-11-03 0:47 ` Vitaly Lugovsky
2002-11-03 1:35 ` Alexey Tourbin
2002-11-03 3:16 ` Vitaly Lugovsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021102225104.GA26165@homestead.turbinal.org \
--to=at@turbinal.org \
--cc=sisyphus@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git