[PREVIOUS CHAPTER] [NEXT CHAPTER]

4 Internals

    4.1	Configure Header Fields

    fml.pl passes only defined fields through to cut off annoying fields,
    e.g. X-Faces, and distributes the mail with a formatted header. It
    orders the header fields of distribution following an array
    @HdrFieldsOrder.

    If $PASS_ALL_FIELDS_IN_HEADER is defined, fml.pl passed all fields in a
    header except for Received: and Return-Receipt-To: (fields defined in
    $SKIP_FIELDS).

    	$PASS_ALL_FIELDS_IN_HEADER = 1; (path through, 1 is default)

    * fml 2.1 is "0", fml 2.2 is "1".

    If you consists on your customize, you can set up @HdrFieldsOrder
    e.g. in config.ph. In default @HdrFieldsOrder (1998/04/26) is

        @HdrFieldsOrder =	# rfc822; fields = ...; Resent-* are ignored;
    	('Return-Path', 'Received',
    	 'Date', 'Posted', 'X-Posted', 'X-Original-Date',
    	 'From', 'Reply-To', 'Subject', 'Sender',
    	 'To', 'Cc', 'Errors-To', 'Message-Id', 'In-Reply-To',
    	 'References', 'Keywords', 'Comments', 'Encrypted',
    	 ':XMLNAME:', ':XMLCOUNT:', 'X-MLServer',
    	 'XRef', 'X-Stardate', 'X-ML-Info',
    	 'X-Mailer',
    	 ':body:', ':any:',
    	 'X-Authentication-Warning',
    	 'Mime-Version', 'Content-Type', 'Content-Transfer-Encoding',
    	 'Content-ID', 'Content-Description', # RFC2045
    	 'Precedence', 'Lines');

    where FML passes X-Authentication-Warning through to show the security
    warning.

    In @HdrFieldsOrder

    	:body:
    	:any:
    	:XMLNAME:
    	:XMLCOUNT:

    are defined for special purposes and expanded before distribution. The
    meaning is

    	:body:		$doby variable is expanded
    			(obsolete, left for backward compatible)

    	:any:		fields not defined in @HdrFieldsOrder are shown
    			when $PASS_ALL_FIELDS_IN_HEADER is set.

    	:XMLNAME:	$XMLNAME (X-ML-Name: Field)

    	:XMLCOUNT:	$XMLCOUNT (X-Mail-Count: field)

[PREVIOUS CHAPTER] [NEXT CHAPTER]