diff options
| author | fukachan <fukachan> | 2004-05-19 13:17:59 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2004-05-19 13:17:59 +0000 |
| commit | ab1f18acda25ae7e3542c93e320826fe22e0c700 (patch) | |
| tree | 9e1b8e6bb831ae82fec7428e5d9ed908f9ef318b /fml | |
| parent | 752b756230c8406ce4114fab0c787ff93c9f4b71 (diff) | |
| download | fml8-ab1f18acda25ae7e3542c93e320826fe22e0c700.tar.gz fml8-ab1f18acda25ae7e3542c93e320826fe22e0c700.tar.bz2 fml8-ab1f18acda25ae7e3542c93e320826fe22e0c700.zip | |
hook to use spamassasin against SPAM
Diffstat (limited to 'fml')
| -rw-r--r-- | fml/doc/ja/tutorial/customize/filter.sgml | 3 | ||||
| -rw-r--r-- | fml/doc/ja/tutorial/customize/recipe.filter.spamassassin.sgml | 41 | ||||
| -rw-r--r-- | fml/doc/ja/tutorial/include/chapters.ent | 3 |
3 files changed, 45 insertions, 2 deletions
diff --git a/fml/doc/ja/tutorial/customize/filter.sgml b/fml/doc/ja/tutorial/customize/filter.sgml index ee101a13..620fea88 100644 --- a/fml/doc/ja/tutorial/customize/filter.sgml +++ b/fml/doc/ja/tutorial/customize/filter.sgml @@ -1,5 +1,5 @@ <!-- - $FML: filter.sgml,v 1.1 2003/04/13 03:29:01 fukachan Exp $ + $FML: filter.sgml,v 1.2 2003/04/13 04:36:11 fukachan Exp $ --> <chapter> @@ -10,6 +10,7 @@ <qandaset> &recipe.filter.notice; +&recipe.filter.spamassassin; </qandaset> diff --git a/fml/doc/ja/tutorial/customize/recipe.filter.spamassassin.sgml b/fml/doc/ja/tutorial/customize/recipe.filter.spamassassin.sgml new file mode 100644 index 00000000..14d73963 --- /dev/null +++ b/fml/doc/ja/tutorial/customize/recipe.filter.spamassassin.sgml @@ -0,0 +1,41 @@ +<!-- + $FML: recipe.filter.notice.sgml,v 1.3 2004/04/07 11:07:02 fukachan Exp $ +--> + + +<qandaentry> + +<question> +<para> +spamassassin で SPAM メールを無視する。 +</para> +</question> + +<answer> + +<para> +HOOK でなんとかする/ごまかす例。 +<screen> +$distribute_verify_request_end_hook = q{ + my $spamassassin = '/usr/pkg/bin/spamc -c'; + + use FileHandle; + my $wh = new FileHandle "| $spamassassin"; + + if (defined $wh) { + $wh->autoflush(1); + my $msg = $curproc->incoming_message(); + $msg->print($wh); + $wh->close(); + if ($?) { + $curproc->log("spam: (code = $?)"); + $curproc->stop_this_process(); + } + } +}; +</screen> +</para> + +</answer> + +</qandaentry> diff --git a/fml/doc/ja/tutorial/include/chapters.ent b/fml/doc/ja/tutorial/include/chapters.ent index 1dd3fe5b..21579f26 100644 --- a/fml/doc/ja/tutorial/include/chapters.ent +++ b/fml/doc/ja/tutorial/include/chapters.ent @@ -1,5 +1,5 @@ <!-- - $FML: chapters.ent,v 1.86 2004/03/31 06:03:00 fukachan Exp $ + $FML: chapters.ent,v 1.87 2004/04/02 04:53:40 fukachan Exp $ --> <!entity versin "1.1"> @@ -77,6 +77,7 @@ <!-- フィルタ --> <!entity chapter.customize.filter SYSTEM "customize/filter.sgml"> <!entity recipe.filter.notice SYSTEM "customize/recipe.filter.notice.sgml"> +<!entity recipe.filter.spamassassin SYSTEM "customize/recipe.filter.spamassassin.sgml"> <!entity chapter.filter SYSTEM "internals/filter.sgml"> <!entity var.filter.rules SYSTEM "variables/filter.rules.sgml"> <!entity var.filter.size SYSTEM "variables/filter.size.sgml"> |
