<?xml version="1.0"?>
<filteroptions>
  <ruleset>
    <rule grouping="any" source="demand">
      <_title>Message contains</_title>
      <partset>
        <part name="subject">
          <value name="subject-type" type="option" value="contains"/>
          <value name="subject" type="string"/>
        </part>
        <part name="body">
          <value name="body-type" type="option" value="contains"/>
          <value name="word" type="string"/>
        </part>
        <part name="sender">
          <value name="sender-type" type="option" value="contains"/>
          <value name="sender" type="string"/>
        </part>
        <part name="to">
          <value name="recipient-type" type="option" value="contains"/>
          <value name="recipient" type="address"/>
        </part>
      </partset>
      <sources/>
    </rule>

    <rule grouping="any" source="demand">
      <_title>Sender contains</_title>
      <partset>
        <part name="sender">
          <value name="sender-type" type="option" value="contains"/>
          <value name="sender" type="string"/>
        </part>
      </partset>
      <sources/>
    </rule>

    <rule grouping="any" source="demand">
      <_title>Body or subject contains</_title>
      <partset>
        <part name="subject">
          <value name="subject-type" type="option" value="contains"/>
          <value name="subject" type="string"/>
        </part>
        <part name="body">
          <value name="body-type" type="option" value="contains"/>
          <value name="word" type="string"/>
        </part>
      </partset>
      <sources/>
    </rule>

    <rule grouping="any" source="demand">
      <_title>Body contains</_title>
      <partset>
        <part name="body">
          <value name="body-type" type="option" value="contains"/>
          <value name="word" type="string"/>
        </part>
      </partset>
      <sources/>
    </rule>

    <rule grouping="any" source="demand">
      <_title>Subject contains</_title>
      <partset>
        <part name="subject">
          <value name="subject-type" type="option" value="contains"/>
          <value name="subject" type="string"/>
        </part>
      </partset>
      <sources/>
    </rule>

    <rule grouping="any" source="demand">
      <_title>Body does not contain</_title>
      <partset>
        <part name="body">
          <value name="body-type" type="option" value="not contains"/>
          <value name="word" type="string"/>
        </part>
      </partset>
      <sources/>
    </rule>

    <rule grouping="any" source="demand">
      <_title>Subject does not contain</_title>
      <partset>
        <part name="subject">
          <value name="subject-type" type="option" value="not contains"/>
          <value name="subject" type="string"/>
        </part>
      </partset>
      <sources/>
    </rule>

    <rule grouping="any" source="demand">
      <_title>Recipients contain</_title>
      <partset>
        <part name="to">
          <value name="recipient-type" type="option" value="contains"/>
          <value name="recipient" type="address"/>
        </part>
      </partset>
      <sources/>
    </rule>
  </ruleset>
</filteroptions>
