< Home

{ field-name | field-body } (MIME header filtering rule view)

Function

The { field-name | field-body } command configures matching conditions in a MIME header filtering rule. The matching conditions include a field name or value, the matching mode, and the string to be matched.

The undo { field-name | field-body } command deletes the configured matching conditions of a MIME header filtering rule.

Format

{ field-name | field-body } { exact | prefix | suffix | any } text

undo { field-name | field-body }

Parameters

Parameter Description Value
field-name

Indicates the field name in the MIME header. For example, in MIME header X-mailer: EhooSend, X-mailer is the field name.

-

field-body

Indicates the field body in the MIME header. For example, in MIME header X-mailer: EhooSend, EhooSend is the field body.

-

exact

Indicates exact matching. A field name or body is matched only when it is the same as text.

-

prefix

Indicates prefix matching. A field name or body starting with text is matched.

-

suffix

Indicates suffix matching. A field name or body ending with text is matched.

-

any

Indicates any matching. A field name or body is matched if it contains text.

-

text

Indicates the string to be matched.

The value is a string of 2 to 127 case-sensitive characters and can contain letters, digits, underscores (_), hyphens (-), at signs (@), and periods (.).

Views

MIME header filtering rule view

Default Level

2: Configuration level

Usage Guidelines

A MIME header filtering rule can contain only one field name and one field body. The latest configuration overrides the previous one.

Example

# Configure exact matching of field body EhooSend in the MIME header filtering rule.

<sysname> system-view
[sysname] mime-header-group name mime_group
[sysname-mime-header-group-mime_group] rule name mime_rule
[sysname-mime-header-group-mime_group-rule-mime_rule] field-body exact EhooSend
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >