Name

filter

Reg Ex Filter — Regular Expression filter that matches expressions on a line, and then applies an action to them.

<filter class="xms.examples.RegExFilter" />

Table 22. Attributes for filter tag (for xms.examples.RegExFilter)

NameDescriptionTypeDefault ValueRequired
actionThe action to take if the expression is matchedCodeClass One of the following values: continue,reject,discard,accept,tempfail,permfail,erroracceptno
headerThe specific header to test for if using mode "specific-header"String any character combinationnoneno
modeSection of the message to testModeType One of the following values: specific-header,body,headers,header-values,allnoneno
regexThe regular expression to test forPattern a regular expressionnoneyes

Example 27. Example configuration for Reg Ex Filter

Required attributes are marked with a bold typeface

<filter class="xms.examples.RegExFilter"
      action="action"
      header="header"
      mode="mode"
      regex="regex" />