<?xml version="1.0"?>
<filterdescription>
<partset>
 <part name="name">
  <title>Name</title>
   <input type="optionlist" name="name-type">
    <option value="contains">
        <title>contains</title>
	<code>(contains "full_name" ${name})</code>
    </option>
    <option value="not contains">
        <title>does not contain</title>
	<code>(not (contains "full_name" ${name}))</code>
    </option>
    <option value="is">
        <title>is</title>
	<code>(is "full_name" ${name})))</code>
    </option>
    <option value="is not">
        <title>is not</title>
	<code>(not (is "full_name" ${name}))</code>
    </option>
    <option value="begin">
        <title>begins with</title>
	<code>(beginswith "full_name" ${name})</code>
    </option>
    <option value="end">
        <title>ends in</title>
	<code>(endswith "full_name" ${name})</code>
    </option>
   </input>
   <input type="string" name="name"/>
 </part>
 <part name="email">
  <title>Email</title>
   <input type="optionlist" name="email-type">
    <option value="contains">
        <title>contains</title>
	<code>(contains "email" ${email})</code>
    </option>
    <option value="not contains">
        <title>does not contain</title>
	<code>(not (contains "email" ${email}))</code>
    </option>
    <option value="is">
        <title>is</title>
	<code>(is "email" ${email})</code>
    </option>
    <option value="is not">
        <title>is not</title>
	<code>(not (is "email" ${email}))</code>
    </option>
   </input>
   <input type="address" name="email"/>
 </part>
 <part name="category">
  <title>Category</title>
   <input type="optionlist" name="category-type">
    <option value="contains">
        <title>contains</title>
	<code>(contains "category_list" ${category})</code>
    </option>
    <option value="not contains">
        <title>does not contain</title>
	<code>(not (contains "category_list" ${category}))</code>
    </option>
    <option value="is">
        <title>is</title>
	<code>(is "category_list" ${category})</code>
    </option>
    <option value="is not">
        <title>is not</title>
	<code>(not (is "category_list" ${category}))</code>
    </option>
   </input>
   <input type="optionlist" name="category">
    <option value="Anniversary">
        <title>Anniversary</title>
    </option>
    <option value="Holiday">
        <title>Holiday</title>
    </option>
    <option value="Ideas">
        <title>Ideas</title>
    </option>
    <option value="Status">
        <title>Status</title>
    </option>
    <option value="Holiday Cards">
        <title>Holiday Cards</title>
    </option>
    <option value="Hot Contacts">
        <title>Hot Contacts</title>
    </option>
    <option value="International">
        <title>International</title>
    </option>
    <option value="Birthday">
        <title>Birthday</title>
    </option>
    <option value="VIP">
        <title>VIP</title>
    </option>
    <option value="Gifts">
        <title>Gifts</title>
    </option>
    <option value="Waiting">
        <title>Waiting</title>
    </option>
    <option value="Key Customer">
        <title>Key Customer</title>
    </option>
    <option value="Time &amp; Expenses">
        <title>Time &amp; Expenses </title>
    </option>
    <option value="Miscellaneous">
        <title>Miscellaneous</title>
    </option>
    <option value="Business">
        <title>Business</title>
    </option>
    <option value="Personal">
        <title>Personal</title>
    </option>
    <option value="Suppliers">
        <title>Suppliers</title>
    </option>
    <option value="Goals/Objectives">
        <title>Goals/Objectives</title>
    </option>
    <option value="Strategies">
        <title>Strategies</title>
    </option>
    <option value="Competition">
        <title>Competition</title>
    </option>
    <option value="Favourites">
        <title>Favourites</title>
    </option>
    <option value="Phone Calls">
        <title>Phone Calls</title>
    </option>
   </input>
 </part>
 <part name="sexp">
   <title>Expression</title>
   <input type="code" name="code"/>
  </part>
</partset>

  <ruleset>

    <rule grouping="any" source="demand">
      <_title>Name begins with</_title>
      <sources/>
    </rule>
    
    <rule grouping="any" source="demand">
      <_title>Email begins with</_title>
      <sources/>
    </rule>
    
    <rule grouping="any" source="demand">
      <_title>Any field contains</_title>
      <sources/>
    </rule>
 
  </ruleset>
</filterdescription>
