<?xml version="1.0"?>
<!--
The contents of this file are subject to the Netscape Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/NPL/

Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.

The Original Code is Mozilla Communicator client code, released
March 31, 1998.

The Initial Developer of the Original Code is Netscape
Communications Corporation. Portions created by Netscape are
 Copyright (C) 1998-1999 Netscape Communications Corporation. All
Rights Reserved.
-->

<?xml-stylesheet href="chrome://messenger/skin/messenger.css" type="text/css"?>
<?xul-overlay href="chrome://global/content/dialogOverlay.xul">
<?xul-overlay href="chrome://messenger/content/msgFolderPickerOverlay.xul"?>
<?xul-overlay href="chrome://messenger/content/searchTermOverlay.xul"?>

<!DOCTYPE window SYSTEM "chrome://messenger/locale/FilterEditor.dtd" >
<window class="dialog"
  id="FilterEditor"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  title="&window.title;"
  orient="vertical"
  persist="width heigh screenX screenY"
  onload="filterEditorOnLoad('msgFccFolderPicker');">

<script language="JavaScript" src="chrome://messenger/content/FilterEditor.js"/>
<script language="JavaScript" src="chrome://global/content/strres.js"/>
<keyset id="keyset"/>
  <titledbox id="searchTermListBox"/>
  <box orient="horizontal" class="padded">
    <text value="&filterName.label;"/>
    <textfield flex="1" id="filterName"/>
  </box>
  <titledbox>
    <title>
      <text value="&filterAction.label;"/>
    </title>
    <menulist id="actionMenu" flex="1">
      <menupopup>
        <menuitem data="1" value="&moveToFolder.label;"/>
        <menuitem data="2" value="&changePriority.label;"/>
        <menuitem data="3" value="&delete.label;"/>
        <menuitem data="4" value="&markRead.label;"/>
        <menuitem data="5" value="&ignoreThread.label;"/>
        <menuitem data="6" value="&watchThread.label;"/>
      </menupopup>
    </menulist>
    <menulist id="actionTargetFolder" flex="1"
              containment="http://home.netscape.com/NC-rdf#child"
              datasources="rdf:msgaccountmanager rdf:mailnewsfolders"
              ref="msgaccounts:/">
      <template>
        <rule iscontainer="true" isempty="false">
          <menupopup>
              <menu uri="..." value="rdf:http://home.netscape.com/NC-rdf#Name">
                <menupopup>
                  <menuitem uri="..." data="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
                  <menuseparator/>
                </menupopup>
              </menu>
          </menupopup>
        </rule>
        <rule>
          <menupopup>
             <menuitem uri="..." data="..." value="rdf:http://home.netscape.com/NC-rdf#Name"/>
          </menupopup>
        </rule>
      </template>
      <menupopup/>
    </menulist>
  </titledbox>
  <separator class="groove"/>
  <box id="okCancelButtons"/>
</window>
