FA2000_003 3.html
Keywords: FA2000_003,fml, flexible mailing list manager, not listserv style but fmlserv emulates listserv or majordomo style

[PREVIOUS CHAPTER] [NEXT CHAPTER]

3 Add a new filtering rule

    The following ruels are the same. Please use one you are familliar with.

    3.1	cf

    To add

    &DEFINE_FIELD_PAT_TO_REJECT("Subject", "ILOVEYOU");

    $DISTRIBUTE_FILTER_HOOK = q#
          if ($e{'Body'} =~ /Content.*\.vbs|filename=.*vbs/i) {
               return 'VB script attatchment';
          }
    #;

    to the last of "cf" (after "LOCAL_CONFIG" line) and run

    	% make config.ph

    3.2	config.ph

    To write

    &DEFINE_FIELD_PAT_TO_REJECT("Subject", "ILOVEYOU");

    $DISTRIBUTE_FILTER_HOOK = q#
          if ($e{'Body'} =~ /Content.*\.vbs|filename=.*vbs/i) {
               return 'VB script attatchment';
          }
    #;

    to the last of config.ph (but before the last "1;").

    3.3	reject every MIME Multipart mails

       &ADD_CONTENT_HANDLER('multipart/.*', '.*/.*', 'reject');

[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.