文書の過去の版を表示しています。


normalizemime

コンパイラをインストールしておくこと。

normalizemime から、ソースファイルnormalizemime.ccをダウンロードしてコンパイル。 $ wget http://hyvatti.iki.fi/~jaakko/spam/normalizemime.cc
$ g++ -W -Wall -ggdb -O2 -o normalizemime -L/usr/local/lib -liconv normalizemime.cc

kakasi

ダウンロード、展開して

./configure –prefix=/usr/local/kakasi –exec-prefix=/usr/local

make

make install

crm114

crm114 ソースをダウンロードして展開。 cd /usr/local chmod 777 lib include cd src wget http://crm114.sourceforge.net/crm114-20051001-BlameRaulMiller.src.tar.gz tar xvfz crm114-20051001-BlameRaulMiller.src.tar.gz

cd tre-0.7.2 ./configure –enable-static $ make $ make install (man pageはエラーが出る)

$ cd /usr/local $ chmod 555 lib include

$ cd /usr/local/src/crm114-<version>.src

Makefile: prefix=/usr → prefix=/usr/local

$ make install

テスト $ crm -v

$ mkdir .crm114 $ cd crm114 $ cp /usr/local/src/crm114-<>.src/rewrites.mfp . $ vi rewrites.mfp

CSSファイルを作る $ cssutil -b -r spam.css $ cssutil -b -r nonspam.css

または、 $ osbf-util -b -r spam.css $ osbf-util -b -r nonspam.css

$ cp /usr/local/src/crm114-<>.src/mailfilter.crm . $ cp /usr/local/src/crm114-<>.src/mailfilter.cf .

mailfilter.crm スクリプトの改造

210行目

match (:m_text:) [:_dw: 0 :*:decision_length:] /.*/
isolate (:m_text:)

isolate (:m_text:) /:*:_dw:/
{
match [:text_preprocessor:] /./
syscall (:*:_dw:) (:m_text:) /:*:text_preprocessor:/
}
match (:m_text:) [:m_text: 0 :*:decision_length:] /.*/

256行目 syscall (:*:c:) (:exp_text:) /:*:mime_decoder: /

syscall (:*:c:) (:exp_text:) /:*:mime_decoder: | :*:text_preprocessor: /

westhost/crm114.1132661094.txt.gz · 最終更新: 2007/07/23 16:50 (外部編集)
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0