Revision control
Copy as Markdown
Other Tools
<?xml version="1.0"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<!DOCTYPE html>
<html id="FilterEditor" xmlns="http://www.w3.org/1999/xhtml"
xmlns:html="http://www.w3.org/1999/xhtml"
windowtype="mailnews:filtereditor"
lightweightthemes="true"
style="min-width: 900px; min-height: 600px;"
scrolling="false">
<head>
<title data-l10n-id="filter-editor-window-title"></title>
<meta
http-equiv="Content-Security-Policy"
content="default-src chrome:; script-src chrome: 'unsafe-inline' moz-src:; style-src chrome: 'unsafe-inline'"
/>
<link rel="stylesheet" href="chrome://messenger/skin/messenger.css" />
<link rel="stylesheet" href="chrome://messenger/skin/icons.css" />
<link rel="stylesheet" href="chrome://messenger/skin/folderMenus.css" />
<link rel="stylesheet" href="chrome://messenger/skin/contextMenu.css" />
<link rel="stylesheet" href="chrome://messenger/skin/input-fields.css" />
<link rel="stylesheet" href="chrome://messenger/skin/themeableDialog.css" />
<link rel="stylesheet" href="chrome://messenger/skin/filterDialog.css" />
<link rel="stylesheet" href="chrome://messenger/skin/filterEditor.css" />
<link rel="localization" href="messenger/filterEditor.ftl" />
<link rel="localization" href="messenger/searchWidgets.ftl" />
<script defer="defer" src="chrome://messenger/content/globalOverlay.js"></script>
<script defer="defer" src="chrome://global/content/editMenuOverlay.js"></script>
<script defer="defer" src="chrome://messenger/content/searchWidgets.js"></script>
<script defer="defer" src="chrome://messenger/content/mailWindowOverlay.js"></script>
<script defer="defer" src="chrome://messenger/content/mailCommands.js"></script>
<script defer="defer" src="chrome://messenger/content/searchTerm.js"></script>
<script defer="defer" src="chrome://messenger/content/dateFormat.js"></script>
<script defer="defer" src="chrome://messenger/content/dialogShadowDom.js"></script>
<script defer="defer" src="chrome://messenger/content/FilterEditor.js"></script>
</head>
<html:body xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<dialog buttons="accept,cancel">
<stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties"/>
<commandset>
<command id="cmd_updateFilterType" oncommand="updateFilterType();"/>
<command id="cmd_updateClassificationMenu" oncommand="gFilterTypeSelector.updateClassificationMenu();"/>
</commandset>
<html:div id="filterNameBox" class="input-container">
<label id="filterNameLabel"
data-l10n-id="filter-editor-name"
control="filterName"/>
<html:input id="filterName"
type="text"
class="input-inline"
aria-labelledby="filterNameLabel"/>
</html:div>
<html:fieldset id="applyFiltersSettings">
<html:legend data-l10n-id="filter-editor-context-desc"></html:legend>
<vbox>
<hbox flex="1" align="center">
<checkbox id="runManual"
data-l10n-id="filter-editor-context-manual"
command="cmd_updateFilterType"/>
</hbox>
<hbox flex="1" align="center">
<checkbox id="runIncoming"
data-l10n-id="filter-editor-context-incoming"
command="cmd_updateClassificationMenu"/>
<menulist id="pluginsRunOrder"
command="cmd_updateFilterType">
<menupopup>
<menuitem id="runBeforePlugins"
data-l10n-id="run-filter-before-spam"/>
<menuitem id="runAfterPlugins"
data-l10n-id="run-filter-after-spam"/>
</menupopup>
</menulist>
</hbox>
<hbox flex="1" align="center">
<checkbox id="runArchive"
data-l10n-id="filter-editor-context-archive"
command="cmd_updateFilterType"/>
</hbox>
<hbox flex="1" align="center">
<checkbox id="runOutgoing"
data-l10n-id="filter-editor-context-outgoing"
command="cmd_updateFilterType"/>
</hbox>
<hbox flex="1" align="center">
<checkbox id="runPeriodic"
data-l10n-id="run-periodically"
data-l10n-args='{"minutes": 10}'
command="cmd_updateFilterType"/>
<label id="periodLength"/>
</hbox>
</vbox>
</html:fieldset>
<vbox id="searchTermListBox">
#include searchTerm.inc.xhtml
<splitter id="gray_horizontal_splitter" persist="state" orient="vertical"/>
<vbox id="filterActionsBox">
<label data-l10n-id="filter-editor-action-desc"
control="filterActionList"/>
<richlistbox id="filterActionList"
flex="1"
style="min-height: 100px;"
onfocus="setLastActionFocus();"
focusedAction="0">
</richlistbox>
</vbox>
<vbox id="statusbar" style="visibility: hidden;">
<hbox align="center">
<label data-l10n-id="filter-editor-action-order-warning"></label>
<label id="seeExecutionOrder" class="text-link"
onclick="showActionsOrder();"
data-l10n-id="filter-editor-action-order-link"></label>
</hbox>
</vbox>
</dialog>
</html:body>
</html>