Forums: users (Thread #4703)

FreeBSD ports mail/bsfilter 改善案を (2004-03-06 17:28 by otsune #8455)

portsのmail/bsfilterを作成しましたが、まだ自分でも荒削りな部分が多いと思いました。
他にも気がついた改善点があれば聞きたいです。

Reply to #8455×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: FreeBSD ports mail/bsfilter 改善案を (2004-03-06 19:31 by nabeken #8457)

作成ありがとうございあります。
逆に、リリースファイルの問題等あれば、御指摘おねがいします。
Reply to #8455

Reply to #8457×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: FreeBSD ports mail/bsfilter 改善案を (2004-07-23 20:52 by Anonymous #10314)

pop proxy がうまく動かないようです。

5.2.1-p9 です。

% bsfilter --pop --auto-update
specify pop-server
/usr/local/bin/bsfilter:2463:in `check_options_for_pop!': error found in pop options (RuntimeError)
from /usr/local/bin/bsfilter:2874:in `get_options'
from /usr/local/bin/bsfilter:2949:in `setup'
from /usr/local/bin/bsfilter:3094
Reply to #8455

Reply to #10314×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: FreeBSD ports mail/bsfilter 改善案を (2004-07-23 22:38 by nabeken #10317)

specify pop-server
と出ていますので、
~/.bsfilter/bsfilter.conf
の内容を確認してください。

pop-server mail.example.com
のような、POPサーバの指定はされていますか?
Reply to #10314

Reply to #10317×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

なるほど (2004-07-24 11:47 by Anonymous #10324)

bsfilter.conf はどこに置くのかなと思っていましたが
そこでしたか。

uninstall してしまったので、また後でチャレンジしてみます。
Reply to #8455

Reply to #10324×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

うまくいきました (2004-07-25 03:13 by Anonymous #10336)

POP proxy としてうまく動作しました。

Mew との連携はよくわかっていないので、
これから調べてみます。ありがとうございました。

Reply to #8455

Reply to #10336×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

FreeBSD ports mail/bsfilter 1.0.4 (2004-08-14 06:34 by otsune #10587)

GPL文章の添付だけなので放置してあったスケルトンの改善にも手をつけたいところです。
とりあえずOPTIONSを追加してみました。
相変わらず英語の解説がまったく自身無しなので修正してもらえると幸いです。

diff -ruN --exclude=CVS /usr/ports/mail/bsfilter.orig/Makefile /usr/ports/mail/b
sfilter/Makefile
--- /usr/ports/mail/bsfilter.orig/Makefile Fri Jun 25 16:43:03 2004
+++ /usr/ports/mail/bsfilter/Makefile Sat Aug 14 06:24:46 2004
@@ -6,10 +6,10 @@
#

PORTNAME= bsfilter
-PORTVERSION= 1.0.3
+PORTVERSION= 1.0.4
CATEGORIES= mail ruby
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP}
-MASTER_SITE_SUBDIR= bsfilter/9787
+MASTER_SITE_SUBDIR= bsfilter/10876
EXTRACT_SUFX= .tgz

MAINTAINER= info@otsune.com
@@ -28,6 +28,10 @@

NO_BUILD= yes
USE_RUBY= yes
+
+OPTIONS= MECAB "Use japanese/mecab" off \
+ CHASEN "Use japanese/chasen" off \
+ KAKASI "Use japanese/kakasi" off

pre-build:
@${ECHO_MSG} "specify algorithm of a tokenizer for Japanese language"
diff -ruN --exclude=CVS /usr/ports/mail/bsfilter.orig/distinfo /usr/ports/mail/b
sfilter/distinfo
--- /usr/ports/mail/bsfilter.orig/distinfo Fri Jun 25 16:43:04 2004
+++ /usr/ports/mail/bsfilter/distinfo Sat Aug 14 06:09:47 2004
@@ -1,2 +1,2 @@
-MD5 (bsfilter-1.0.3.tgz) = e7603e270015752d2141e12969a678c7
-SIZE (bsfilter-1.0.3.tgz) = 855878
+MD5 (bsfilter-1.0.4.tgz) = 6fb0bb985bd6c4cbac1d5589de03d985
+SIZE (bsfilter-1.0.4.tgz) = 862941
Reply to #8455

Reply to #10587×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: FreeBSD ports mail/bsfilter 1.0.4 (2004-08-14 21:38 by nabeken #10592)

ありがとうございます。

pkg-descrの先頭に
bsfilter is a spam filter using Bayesian(statistical) algorithm
というような感じで、何なのかという説明を加えた方がいいのではないでしょうか。

ruby-chasenはbrokenのようなので、オプションから外してしまう手もあります。
mecabもなぜか私のPC(4.10R)では動かないのですが、これは個人的な問題でしょう。
Reply to #10587

Reply to #10592×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: FreeBSD ports mail/bsfilter 1.0.4 (2004-08-15 00:40 by otsune #10600)

とりあえずCHASENを外してpkg-descrを公式サイトのindex-e.htmlからの引用に修正してみました。

--- /usr/ports/mail/bsfilter.orig/Makefile Fri Jun 25 16:43:03 2004
+++ /usr/ports/mail/bsfilter/Makefile Sun Aug 15 00:30:12 2004
@@ -6,10 +6,10 @@
#

PORTNAME= bsfilter
-PORTVERSION= 1.0.3
+PORTVERSION= 1.0.4
CATEGORIES= mail ruby
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP}
-MASTER_SITE_SUBDIR= bsfilter/9787
+MASTER_SITE_SUBDIR= bsfilter/10876
EXTRACT_SUFX= .tgz

MAINTAINER= info@otsune.com
@@ -19,9 +19,6 @@
.if defined(WITH_MECAB)
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/MeCab.so:${PORTSDIR}/japanese/ruby-mecab
.endif
-.if defined(WITH_CHASEN)
-RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/chasen.so:${PORTSDIR}/japanese/ruby-chase
n
-.endif
.if defined(WITH_KAKASI)
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/kakasi.so:${PORTSDIR}/japanese/ruby-kakas
i
.endif
@@ -29,9 +26,11 @@
NO_BUILD= yes
USE_RUBY= yes

+OPTIONS= KAKASI "Use japanese/kakasi" off \
+ MECAB "Use japanese/mecab" off
+
pre-build:
@${ECHO_MSG} "specify algorithm of a tokenizer for Japanese language"
- @${ECHO_MSG} "WITH_CHASEN=yes (japanese/chasen)"
@${ECHO_MSG} "WITH_KAKASI=yes (japanese/kakasi)"
@${ECHO_MSG} "WITH_MECAB=yes (japanese/mecab)"

diff -ruN --exclude=CVS /usr/ports/mail/bsfilter.orig/distinfo /usr/ports/mail/b
sfilter/distinfo
--- /usr/ports/mail/bsfilter.orig/distinfo Fri Jun 25 16:43:04 2004
+++ /usr/ports/mail/bsfilter/distinfo Sat Aug 14 06:09:47 2004
@@ -1,2 +1,2 @@
-MD5 (bsfilter-1.0.3.tgz) = e7603e270015752d2141e12969a678c7
-SIZE (bsfilter-1.0.3.tgz) = 855878
+MD5 (bsfilter-1.0.4.tgz) = 6fb0bb985bd6c4cbac1d5589de03d985
+SIZE (bsfilter-1.0.4.tgz) = 862941
diff -ruN --exclude=CVS /usr/ports/mail/bsfilter.orig/pkg-descr /usr/ports/mail/
bsfilter/pkg-descr
--- /usr/ports/mail/bsfilter.orig/pkg-descr Fri Jun 25 07:18:55 2004
+++ /usr/ports/mail/bsfilter/pkg-descr Sun Aug 15 00:37:16 2004
@@ -1,10 +1,13 @@
-- English and Japanese are supported.
-- Written in Ruby
-- Three interfaces are supported.
-- Local mail file. accesses files or stdin/out.
-- IMAP. accesses mails in a IMAP server.
-- POP proxy. works as a proxy between a POP server and MUA.
-- GPL
+bsfilter is a spam filter using Bayesian(statistical) algorithm.
+
+- a filter which distinguishes spam and non-spam mail
+- support mails written in English and Japanese language
+- written in Ruby
+- support 3 methods for access
+-- traditional unix-style filter. study and judge local files or pipe
+-- IMAP. study and judge mails in an IMAP server
+-- POP proxy. run between POP server and MUA
+- distributed under GPL

Author: nabeken
WWW: http://bsfilter.org/index-e.html
Reply to #10592

Reply to #10600×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login