fml 8 tutorial
Prev | Chapter 35. Filter | Next

# Mime Component Filter Rules

The format of fml8 mime component filter is space separeted. It is not fml4's content filter rules.

    text/plain 	permit
    text/html	reject
    *		permit

This filter supporse MIME, not including non mime operations. To identify the whole type (e.g. text/plain) and the part type (e.g. text/plain in multipart/mixed), we use the following format.

    Whole message type      part type      action
    ----------------------------------------------
    text/plain 		*		permit
    multipart/mixed		text/plain	permit
    multipart/mixed		text/html	reject
    multipart/mixed		image/*		cutoff
    *			*		permit

the following operations are not implemented but needed ?

    text/plain 		:uuencoded:	cutoff
    text/plain 		:size>500k	cutoff

But there are several problems of rule construction.

## First Match Vs Last Match ?

This is a filter but not a router filter. Router filter is first match in almost cases. But both first match and last match are not suitable for mime component filter when we consider the meaning of "cutoff" operation.

( NOT TRANSLATED AFTER THIS )

Prev | Home | Next
Limit For Command Mail | Up | Discussion: Mime Component Filter Needs What Functions ?

fml 8.0 (fml-devel) project homepage is www.fml.org/software/fml8/.
fml 4.0 project homepage is www.fml.org/software/fml4/.
about one floppy bsd routers, see www.bsdrouter.org/.
other free softwares are found at www.fml.org/software/.

author's homepage is www.fml.org/home/fukachan/.
Also, visit nuinui's world :) at www.nuinui.net.

For questions about FML, e-mail <fml-bugs@fml.org>.