3 Configuration before fml 2.2A#42
Please give up if you use fml before fml 1.6.
3.1 Files to get
[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 case
Cut and paste the hook below after 'LOCAL_CONFIG' line in cf and run
% make config.ph
3.3 config.ph
Cut and paste the hook below in config.ph (before 1;).
3.4 Hook to paste
---------->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.