[PREVIOUS CHAPTER] [NEXT CHAPTER]

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.fml.org/pub/fml/current/src/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-2000 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.