NAME
    FML::Filter::MimeComponent - filter based on mail MIME components.

SYNOPSIS
DESCRIPTION
    "FML::Filter::MimeComponent" is a mime content based filter.

INTERNAL PRESENTATION FOR FILTER RULES
    Our filter rule is a list of the following components:

        (whole message type, message type, action)

    For example,

        $rules = (
                  (text/plain   *  permit),
                  (multipart/*  *  reject),
                  (*            *  reject),
                );

METHODS
  new()
    constructor.

  mime_component_check($msg)
    $msg is "Mail::Message" object.

    "Usage":

        use FML::Filter::MimeComponent;
        my $obj = new FML::Filter::MimeComponent;
        my $msg = $curproc->incoming_message();

        $obj->mime_component_check($msg);
        if ($obj->error()) {
           # do something for wrong formated message ...
        }

UTILITY FUNCTIONS
DEBUG
        perl -I PERL_INCLUDE_PATH MimeComponent3.pm -c RULE_FILE @FILES

CODING STYLE
    See "http://www.fml.org/software/FNF/" on fml coding style guide.

AUTHOR
    Ken'ichi Fukamachi

COPYRIGHT
    Copyright (C) 2002,2003,2004,2005,2006 Ken'ichi Fukamachi

    All rights reserved. This program is free software; you can redistribute
    it and/or modify it under the same terms as Perl itself.

HISTORY
    FML::Filter::MimeComponent first appeared in fml8 mailing list driver
    package. See "http://www.fml.org/" for more details.

    Original FML::Filter::MimeComponent is writtern by Takuya MURASHITA.
    This FML::Filter::MimeComponent module is rewritten based on the first
    version to be able to handle enhanced filter rules.

    2002/09/30: rename ContentCheck to MimeComponent.

    2002/10/21: fully rewritten by fukachan@fml.org.

