3 fml 2.2A#41まで(2.2A#42以前のもの)

あまり古いとだめな気がしますが、おそらくfml 1.6以降なら有効と"思われる
"設定方法を書いておきます。#動かなかったらあきらめて下さい _o_

3.1 必要なファイル

○ libviruschk.pl を入手する。それを/usr/local/fmlのようなfmlをインス
トールしてある場所に置く。

[ftp]
ftp://ftp.iij.ad.jp/pub/IIJ/dist/fukachan/fml/snapshot/src/libviruschk.pl
 

[www]
http://www.sapporo.iij.ad.jp/staff/fukachan/archive/snapshot/src/libviruschk.pl
 


3.2 cfの場合

以下にしめすHOOKをcfファイルのLOCAL_CONFIGの後に張り付けて

	% make config.ph

3.3 config.ph

以下にしめすHOOKをconfig.phの最後の1;より前にはりつける。

3.4 はりつけるべきHOOK

---------->8---------->8---------->8---------->8---------->8----------
$START_HOOK = q!;

local(%e) = %Envelope;
local($boundary);

# MIME skip mode; against automatic-MIME-encapsulated fool MUA
if ($e{'h:content-type:'} =~ /boundary=\"(.*)\"/i ||
    $e{'h:content-type:'} =~ /boundary=\s*(\S+)/i) {
    $boundary = $1;
    $boundary = "--$boundary";
    $e{'MIME:boundary'} = $boundary;

    require 'libviruschk.pl';
    $r = &VirusCheck(*e);

    if ($r) { 
	$DO_NOTHING = 1;
	&Log("EnvelopeFilter::reject for '$r'");
	&Warn("Rejected mail by FML EnvelopeFilter $ML_FN", 
	      "Mail from $From_address\nis rejected for '$r'.\n".&WholeMail);
    }
}

!;
---------->8---------->8---------->8---------->8---------->8----------



[PREVIOUS CHAPTER] [NEXT CHAPTER]
Copyright (C) 1993-1999 Ken'ichi Fukamachi
All rights of this page is reserved.

# This Document(html format) is automatically geneareted by fwix.pl. 
# fwix (Formatter of WIX Language) is fml document formatter system
# designed to generate plaintext, html, texinfo and nroff from one file.
#
# Copyright (C) 1993-1999 Ken'ichi Fukamachi
#          All rights reserved. 
#               1993-1996 fukachan@phys.titech.ac.jp
#               1996-1999 fukachan@sapporo.iij.ad.jp
# 
# FML is free software; you can redistribute it and/or modify
# it under the terms of GNU General Public License.
# See the file COPYING for more details.