mail/components/preferences/general.inc.xhtml
author Geoff Lankow <geoff@darktrojan.net>
Tue, 02 Jun 2020 11:53:37 +1200
changeset 39317 9beb6b92df03d79f16e778f32dd00860405b1150
parent 39302 64d27f1a0583787a078a7ce0816be8205fa59229
child 39325 e219e1d5682d1eb0c3832a9c73883da28a0e7086
permissions -rw-r--r--
Bug 1642509 - Remove stray #ifndef in mail/components/preferences/general.inc.xhtml. rs=bustage-fix a=wsmwk

# 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/.
  <prefpane id="paneGeneral">
    <script src="chrome://communicator/content/utilityOverlay.js"/>
    <script src="chrome://messenger/content/preferences/general.js"/>
    <script src="chrome://mozapps/content/preferences/fontbuilder.js"/>

    <commandset id="appPaneCommandSet">
      <command id="cmd_delete"
               oncommand="gGeneralPane.onDelete();"/>
    </commandset>

    <keyset id="appPaneKeyset">
      <key keycode="VK_BACK" modifiers="any" command="cmd_delete"/>
      <key keycode="VK_DELETE" modifiers="any" command="cmd_delete"/>
    </keyset>

    <keyset>
      <key data-l10n-id="focus-search-shortcut" modifiers="accel"
           oncommand="gGeneralPane.focusFilterBox();"/>
      <key data-l10n-id="focus-search-shortcut-alt" modifiers="accel"
           oncommand="gGeneralPane.focusFilterBox();"/>
    </keyset>

    <linkset>
      <html:link rel="localization" href="branding/brand.ftl"/>
      <html:link rel="localization" href="messenger/preferences/preferences.ftl"/>
    </linkset>

    <stringbundle id="bundlePreferences" src="chrome://messenger/locale/preferences/preferences.properties"/>
#ifdef HAVE_SHELL_SERVICE
    <stringbundle id="bundleBrand" src="chrome://branding/locale/brand.properties"/>
#endif

    <hbox id="generalCategory"
          class="subcategory"
          data-category="paneGeneral">
      <html:h1 data-l10n-id="pane-general-title"/>
    </hbox>

    <html:fieldset data-category="paneGeneral">
      <html:legend data-l10n-id="general-legend"></html:legend>
      <vbox>
        <hbox align="start">
          <checkbox id="mailnewsStartPageEnabled"
                    preference="mailnews.start_page.enabled"
                    data-l10n-id="start-page-label"/>
        </hbox>
        <hbox align="center" class="input-container">
          <label data-l10n-id="location-label" control="mailnewsStartPageUrl"/>
          <html:input id="mailnewsStartPageUrl"
                      type="text"
                      preference="mailnews.start_page.url"/>
          <button id="browseForStartPageUrl"
                  data-l10n-id="restore-default-label"
                  oncommand="gGeneralPane.restoreDefaultStartPage();">
          </button>
        </hbox>
      </vbox>
    </html:fieldset>

    <html:fieldset data-category="paneGeneral">
      <html:legend data-l10n-id="default-search-engine"></html:legend>
      <hbox align="center">
        <menulist id="defaultWebSearch">
          <menupopup id="defaultWebSearchPopup"/>
        </menulist>
        <button id="addSearchEngine"
                data-l10n-id="add-search-engine"
                oncommand="gGeneralPane.addSearchEngine();"/>
        <button id="removeSearchEngine"
                data-l10n-id="remove-search-engine"
                oncommand="gGeneralPane.removeSearchEngine();"/>
      </hbox>
    </html:fieldset>

#ifdef HAVE_SHELL_SERVICE
    <html:fieldset id="systemDefaultsGroup" data-category="paneGeneral">
      <html:legend data-l10n-id="system-integration-legend"></html:legend>
      <vbox>
      <hbox id="checkDefaultBox" align="center">
        <checkbox id="alwaysCheckDefault"
                  preference="mail.shell.checkDefaultClient"
                  data-l10n-id="always-check-default"/>
        <spacer flex="1"/>
        <button id="checkDefaultButton"
                data-l10n-id="check-default-button"
                oncommand="gGeneralPane.checkDefaultNow();"
                preference="pref.general.disable_button.default_mail"/>
      </hbox>
#ifdef XP_WIN
      <hbox align="start">
        <checkbox data-l10n-id="minimize-to-tray-label"
                  preference="mail.minimizeToTray"/>
      </hbox>
#endif
      <hbox id="searchIntegrationContainer">
        <checkbox id="searchIntegration"
                  preference="searchintegration.enable"
                  data-l10n-id="search-integration-label"/>
      </hbox>
      </vbox>
    </html:fieldset>
#endif

    <hbox id="languageAndAppearanceCategory"
          class="subcategory"
          data-category="paneGeneral">
      <html:h1 data-l10n-id="general-language-and-appearance-header"/>
    </hbox>

    <!-- Fonts and Colors -->
    <html:fieldset id="fontsGroup" data-category="paneGeneral">
      <html:legend data-l10n-id="fonts-legend"></html:legend>

      <hbox id="fontSettings" flex="1">
        <vbox id="fontRow" flex="1">
          <hbox align="center">
            <label data-l10n-id="default-font-label" control="defaultFont"/>
            <menulist id="defaultFont" flex="1" sizetopopup="pref" crop="center">
              <menupopup crop="center"/>
            </menulist>
            <label data-l10n-id="default-size-label" control="defaultFontSize"/>
            <menulist id="defaultFontSize" flex="1">
              <menupopup crop="center">
                <menuitem value="9" label="9"/>
                <menuitem value="10" label="10"/>
                <menuitem value="11" label="11"/>
                <menuitem value="12" label="12"/>
                <menuitem value="13" label="13"/>
                <menuitem value="14" label="14"/>
                <menuitem value="15" label="15"/>
                <menuitem value="16" label="16"/>
                <menuitem value="17" label="17"/>
                <menuitem value="18" label="18"/>
                <menuitem value="20" label="20"/>
                <menuitem value="22" label="22"/>
                <menuitem value="24" label="24"/>
                <menuitem value="26" label="26"/>
                <menuitem value="28" label="28"/>
                <menuitem value="30" label="30"/>
                <menuitem value="32" label="32"/>
                <menuitem value="34" label="34"/>
                <menuitem value="36" label="36"/>
                <menuitem value="40" label="40"/>
                <menuitem value="44" label="44"/>
                <menuitem value="48" label="48"/>
                <menuitem value="56" label="56"/>
                <menuitem value="64" label="64"/>
                <menuitem value="72" label="72"/>
              </menupopup>
            </menulist>
          </hbox>
        </vbox>
        <vbox id="colorsRow">
          <button id="advancedFonts"
                  data-l10n-id="font-options-button"
                  oncommand="gGeneralPane.configureFonts();"
                  flex="1"/>
          <button id="colors"
                  data-l10n-id="color-options-button"
                  oncommand="gGeneralPane.configureColors();"
                  flex="1"/>
        </vbox>
      </hbox>
      <hbox>
        <html:legend data-l10n-id="display-width-legend"></html:legend>
      </hbox>
      <hbox>
        <checkbox id="displayGlyph"
                  preference="mail.display_glyph"
                  data-l10n-id="convert-emoticons-label"/>
        <spacer flex="1"/>
      </hbox>

      <separator class="thin"/>

      <label control="displayText" data-l10n-id="display-text-label"/>
      <hbox id="displayText" class="indent" align="center" role="group">
        <label data-l10n-id="style-label" control="mailQuotedStyle"/>
        <menulist id="mailQuotedStyle" preference="mail.quoted_style">
          <menupopup>
            <menuitem value="0" data-l10n-id="regular-style-item"/>
            <menuitem value="1" data-l10n-id="bold-style-item"/>
            <menuitem value="2" data-l10n-id="italic-style-item"/>
            <menuitem value="3" data-l10n-id="bold-italic-style-item"/>
          </menupopup>
        </menulist>
        <label data-l10n-id="size-label" control="mailQuotedSize"/>
        <menulist id="mailQuotedSize" preference="mail.quoted_size">
          <menupopup>
            <menuitem value="0" data-l10n-id="regular-size-item"/>
            <menuitem value="1" data-l10n-id="bigger-size-item"/>
            <menuitem value="2" data-l10n-id="smaller-size-item"/>
          </menupopup>
        </menulist>
        <label data-l10n-id="quoted-text-color" control="citationmenu"/>
        <html:input type="color" id="citationmenu" preference="mail.citation_color"/>
      </hbox>
    </html:fieldset>

    <!-- Date and time formatting -->
    <html:fieldset data-category="paneGeneral">
      <html:legend data-l10n-id="datetime-formatting-legend"></html:legend>
      <radiogroup id="formatLocale" align="start"
                  preference="intl.regional_prefs.use_os_locales"
                  orient="vertical">
        <radio id="appLocale"
               value="false"/>
               <!-- label and accesskey will be set dynamically -->
        <radio id="rsLocale"
               value="true"/>
               <!-- label and accesskey will be set dynamically -->
      </radiogroup>
    </html:fieldset>

    <html:fieldset id="messengerLanguagesBox" data-category="paneGeneral" hidden="hidden">
      <html:legend data-l10n-id="language-selector-legend"></html:legend>
        <vbox align="start">
        <description flex="1"
                     controls="chooseMessengerLanguage"
                     data-l10n-id="choose-messenger-language-description"/>
        <hbox>
          <menulist id="defaultMessengerLanguage"
                    oncommand="gGeneralPane.onMessengerLanguageChange(event)">
            <menupopup/>
          </menulist>
          <button id="manageMessengerLanguagesButton"
                  class="accessory-button"
                  data-l10n-id="manage-messenger-languages-button"
                  oncommand="gGeneralPane.showMessengerLanguages({search: false})"/>
        </hbox>
      </vbox>
      <hbox id="confirmMessengerLanguage"
            class="message-bar"
            align="center"
            hidden="true">
        <image class="message-bar-icon"/>
        <vbox class="message-bar-content-container" align="stretch" flex="1"/>
      </hbox>
    </html:fieldset>

    <!-- Scrolling -->
    <html:fieldset id="scrollingGroup" data-category="paneGeneral">
      <html:legend data-l10n-id="scrolling-legend"></html:legend>
      <hbox>
        <checkbox id="useAutoScroll"
                  data-l10n-id="autoscroll-label"
                  preference="general.autoScroll"/>
        <spacer flex="1"/>
      </hbox>
      <hbox>
        <checkbox id="useSmoothScrolling"
                  data-l10n-id="smooth-scrolling-label"
                  preference="general.smoothScroll"/>
        <spacer flex="1"/>
      </hbox>
    </html:fieldset>


    <hbox id="incomingMailCategory"
          class="subcategory"
          data-category="paneGeneral">
      <html:h1 data-l10n-id="general-incoming-mail-header"/>
    </hbox>

    <html:fieldset data-category="paneGeneral">
      <html:legend data-l10n-id="new-message-arrival"></html:legend>
#ifdef XP_MACOSX
      <hbox align="center">
        <description flex="1" data-l10n-id="change-dock-icon"/>
        <button id="dockOptions"
                oncommand="gGeneralPane.configureDockOptions();"
                data-l10n-id="app-icon-options"/>
      </hbox>
      <description class="bold" data-l10n-id="notification-settings"/>
#else
      <hbox align="center">
        <checkbox id="newMailNotificationAlert"
                  data-l10n-id="animated-alert-label"
                  preference="mail.biff.show_alert"/>
        <spacer flex="1"/>
        <button id="customizeMailAlert"
                oncommand="gGeneralPane.customizeMailAlert();"
                data-l10n-id="customize-alert-label"/>
      </hbox>
      <hbox>
        <checkbox id="newMailNotificationTrayIcon"
#ifndef XP_WIN
                  hidden="true"
#endif
                  preference="mail.biff.show_tray_icon"
                  data-l10n-id="tray-icon-label"/>
      </hbox>
#endif

      <hbox align="center">
        <checkbox id="newMailNotification"
                  preference="mail.biff.play_sound"
                  data-l10n-id="mail-play-sound-label"
                  oncommand="gGeneralPane.updatePlaySound();"/>
        <spacer flex="1"/>
        <button id="playSound"
                data-l10n-id="mail-play-button"
                oncommand="gGeneralPane.previewSound();"/>
      </hbox>

#ifndef XP_MACOSX
      <radiogroup id="soundType"
                  class="indent"
                  preference="mail.biff.play_sound.type"
                  orient="vertical"
                  oncommand="gGeneralPane.updatePlaySound();"
                  aria-labelledby="newMailNotification">
        <hbox>
          <radio id="system"
                 value="0"
                 data-l10n-id="mail-system-sound-label"/>
          <spacer flex="1"/>
        </hbox>
        <hbox>
          <radio id="custom"
                 value="1"
                 data-l10n-id="mail-custom-sound-label"/>
          <spacer flex="1"/>
        </hbox>
      </radiogroup>
#endif
      <hbox align="center" class="input-container">
        <html:input id="soundUrlLocation"
                    type="text"
                    class="input-filefield indent"
                    readonly="readonly"
                    preference="mail.biff.play_sound.url"
                    preference-editable="true"
                    aria-labelledby="custom"/>
        <button id="browseForSound"
                data-l10n-id="mail-browse-sound-button"
                oncommand="gGeneralPane.browseForSoundFile();"/>
      </hbox>
    </html:fieldset>

    <hbox id="filesAttachmentCategory"
          class="subcategory"
          data-category="paneGeneral">
      <html:h1 data-l10n-id="general-files-and-attachment-header"/>
    </hbox>

    <html:fieldset data-category="paneGeneral">
      <hbox>
        <search-textbox id="filter"
                        flex="1"
                        data-l10n-id="search-input"
                        data-l10n-attrs="placeholder"
                        aria-controls="handlersView"
                        oncommand="gGeneralPane._rebuildView();"/>
      </hbox>

      <separator class="thin"/>

      <vbox>
        <listheader equalsize="always">
          <treecol id="typeColumn" value="type"
                   persist="sortDirection"
                   data-l10n-id="type-column-label"
                   flex="1" onclick="gGeneralPane.sort(event);"
                   sortDirection="ascending" sort="typeDescription"/>
          <treecol id="actionColumn" value="action"
                   persist="sortDirection"
                   data-l10n-id="action-column-label"
                   flex="1" onclick="gGeneralPane.sort(event);"/>
        </listheader>
        <richlistbox id="handlersView" height="180px"
                     preference="pref.downloads.disable_button.edit_actions"/>
      </vbox>

      <separator class="thin"/>

      <vbox align="start">
        <radiogroup id="saveWhere" flex="1"
                    preference="browser.download.useDownloadDir">
          <hbox id="saveToRow" align="center" class="input-container">
            <radio id="saveTo" value="true"
                   data-l10n-id="save-to-label"
                   aria-labelledby="saveTo downloadFolder"/>
            <html:input id="downloadFolder"
                        class="input-filefield"
                        type="text"
                        readonly="readonly"
                        aria-labelledby="saveTo"/>
            <button id="chooseFolder"
                    oncommand="gDownloadDirSection.chooseFolder();"
                    data-l10n-id="choose-folder-label"/>
          </hbox>
          <hbox>
            <radio id="alwaysAsk"
                   value="false"
                   data-l10n-id="always-ask-label"/>
          </hbox>
        </radiogroup>
      </vbox>
    </html:fieldset>

    <hbox id="tagsCategory"
          class="subcategory"
          data-category="paneGeneral">
      <html:h1 data-l10n-id="general-tags-header"/>
    </hbox>

    <html:fieldset data-category="paneGeneral">
      <label control="tagList" data-l10n-id="display-tags-text"/>
      <hbox>
        <richlistbox id="tagList"
                     flex="1"
                     height="180px"
                     ondblclick="gGeneralPane.editTag();"
                     onselect="gGeneralPane.onSelectTag();"/>
        <vbox id="tagButtons">
          <button data-l10n-id="new-tag-button"
                  oncommand="gGeneralPane.addTag();"/>
          <button id="editTagButton" disabled="true"
                  data-l10n-id="edit-tag-button"
                  oncommand="gGeneralPane.editTag();"/>
          <button id="removeTagButton" disabled="true"
                  data-l10n-id="delete-tag-button"
                  oncommand="gGeneralPane.removeTag();"/>
        </vbox>
      </hbox>
    </html:fieldset>


    <hbox id="readingAndDisplayCategory"
          class="subcategory"
          data-category="paneGeneral">
      <html:h1 data-l10n-id="general-reading-and-display-header"/>
    </hbox>

    <html:fieldset data-category="paneGeneral">
      <vbox>
        <hbox>
          <checkbox id="automaticallyMarkAsRead"
                    preference="mailnews.mark_message_read.auto"
                    data-l10n-id="auto-mark-as-read"/>
        </hbox>

        <radiogroup id="markAsReadAutoPreferences" orient="vertical"
                    class="indent"
                    align="start"
                    preference="mailnews.mark_message_read.delay">
          <radio id="mark_read_immediately"
                 data-l10n-id="mark-read-no-delay"
                 value="false"/>
          <hbox align="center">
            <radio id="markAsReadAfterDelay" value="true"
                   data-l10n-id="mark-read-delay"/>
            <html:input id="markAsReadDelay" type="number" class="size3"
                        min="1" max="2147483"
                        preference="mailnews.mark_message_read.delay.interval"
                        aria-labelledby="markAsReadAfterDelay markAsReadDelay secondsLabel"/>
            <label id="secondsLabel" data-l10n-id="seconds-label"/>
          </hbox>
        </radiogroup>
      </vbox>

      <separator/>

      <vbox>
        <hbox>
          <label data-l10n-id="open-msg-label"
                 control="mailOpenMessageBehavior"/>
        </hbox>
        <hbox>
          <radiogroup id="mailOpenMessageBehavior" class="indent"
                      preference="mail.openMessageBehavior"
                      orient="horizontal">
            <radio id="newTab" value="2" data-l10n-id="open-msg-tab"/>
            <radio id="newWindow" value="0" data-l10n-id="open-msg-window"/>
            <radio id="existingWindow" value="1"
                   data-l10n-id="open-msg-ex-window"/>
          </radiogroup>
        </hbox>
        <hbox>
          <checkbox id="closeMsgOnMoveOrDelete"
                    data-l10n-id="close-move-delete"
                    preference="mail.close_message_window.on_delete"/>
        </hbox>
      </vbox>

      <separator/>

      <hbox>
        <label data-l10n-id="display-name-label"/>
        </hbox>
        <hbox>
        <checkbox id="showCondensedAddresses"
                  data-l10n-id="condensed-addresses-label"
                  preference="mail.showCondensedAddresses"/>
      </hbox>

      <separator class="thin"/>

      <hbox align="center">
        <description flex="1" data-l10n-id="return-receipts-description"/>
        <button id="showReturnReceipts"
                data-l10n-id="return-receipts-button"
                oncommand="gGeneralPane.showReturnReceipts();"/>
      </hbox>
    </html:fieldset>

#ifdef MOZ_UPDATER
    <hbox id="updatesCategory"
          class="subcategory"
          data-category="paneGeneral">
      <html:h1 data-l10n-id="general-updates-header"/>
    </hbox>

    <!-- Update -->
    <html:fieldset id="updateApp" data-category="paneGeneral">
      <html:legend data-l10n-id="update-app-legend"></html:legend>
      <hbox align="center">
        <vbox>
          <description>
            <label id="version"/>
            <label is="text-link" id="releasenotes" hidden="true">&releaseNotes.link;</label>
          </description>
          <description id="distribution" class="text-blurb" hidden="true"/>
          <description id="distributionId" class="text-blurb" hidden="true"/>
        </vbox>
        <spacer flex="1"/>
        <vbox>
          <button id="showUpdateHistory"
                  data-l10n-id="update-history-button"
                  preference="app.update.disable_button.showUpdateHistory"
                  oncommand="gGeneralPane.showUpdates();"/>
        </vbox>
      </hbox>
      <vbox id="updateBox">
        <deck id="updateDeck" orient="vertical">
          <hbox id="checkForUpdates" align="center">
            <spacer flex="1"/>
            <button id="checkForUpdatesButton" align="start"
                    label="&update.checkForUpdatesButton.label;"
                    accesskey="&update.checkForUpdatesButton.accesskey;"
                    oncommand="gAppUpdater.checkForUpdates();"/>
          </hbox>
          <hbox id="downloadAndInstall" align="center">
            <spacer flex="1"/>
            <button id="downloadAndInstallButton"
                    oncommand="gAppUpdater.startDownload();"/>
                    <!-- label and accesskey will be filled by JS -->
          </hbox>
          <hbox id="apply" align="center">
            <spacer flex="1"/>
            <button id="updateButton"
                    label="&update.updateButton.label3;"
                    accesskey="&update.updateButton.accesskey;"
                    oncommand="gAppUpdater.buttonRestartAfterDownload();"/>
          </hbox>
          <hbox id="checkingForUpdates" align="center">
            <image class="update-throbber"/><label>&update.checkingForUpdates;</label>
            <spacer flex="1"/>
            <button label="&update.checkForUpdatesButton.label;"
                    accesskey="&update.checkForUpdatesButton.accesskey;"
                    disabled="true"/>
          </hbox>
          <hbox id="downloading" align="center">
            <image class="update-throbber"/><label>&update.downloading.start;</label>
            <label id="downloadStatus"/><label>&update.downloading.end;</label>
          </hbox>
          <hbox id="applying" align="center">
            <image class="update-throbber"/><label>&update.applying;</label>
          </hbox>
         <hbox id="downloadFailed" align="center">
            <label>&update.failed.start;</label>
            <label is="text-link" id="failedLink">&update.failed.linkText;</label>
            <label>&update.failed.end;</label>
            <spacer flex="1"/>
            <button label="&update.checkForUpdatesButton.label;"
                    accesskey="&update.checkForUpdatesButton.accesskey;"
                    oncommand="gAppUpdater.checkForUpdates();"/>
          </hbox>
          <hbox id="policyDisabled" align="center">
            <label>&update.adminDisabled;</label>
          </hbox>
          <hbox id="noUpdatesFound" align="center">
            <label>&update.noUpdatesFound;</label>
            <spacer flex="1"/>
            <button label="&update.checkForUpdatesButton.label;"
                    accesskey="&update.checkForUpdatesButton.accesskey;"
                    oncommand="gAppUpdater.checkForUpdates();"/>
          </hbox>
          <hbox id="otherInstanceHandlingUpdates" align="center">
            <label>&update.otherInstanceHandlingUpdates;</label>
          </hbox>
          <hbox id="manualUpdate" align="center">
            <label>&update.manual.start;</label><label is="text-link" id="manualLink">
              &update.manual.linkText;
            </label>
            <label>&update.manual.end;</label>
            <spacer flex="1"/>
            <button label="&update.checkForUpdatesButton.label;"
                    accesskey="&update.checkForUpdatesButton.accesskey;"
                    disabled="true"/>
          </hbox>
          <hbox id="unsupportedSystem" align="center">
            <label>&update.unsupported.start;</label>
            <label is="text-link" id="unsupportedLink">&update.unsupported.linkText;</label>
            <label>&update.unsupported.end;</label>
          </hbox>
          <hbox id="restarting" align="center">
            <image class="update-throbber"/><label>&update.restarting;</label>
          </hbox>
        </deck>
      </vbox>
      <separator/>
      <description id="updateAllowDescription" data-l10n-id="allow-description"/>
      <vbox id="updateSettingsContainer">
        <radiogroup id="updateRadioGroup"
                    align="start">
          <radio id="autoDesktop"
                 value="true"
                 data-l10n-id="automatic-updates-label"/>
          <radio id="manualDesktop"
                 value="false"
                 data-l10n-id="check-updates-label"/>
        </radiogroup>
        <description id="updateSettingCrossUserWarning"
                     data-l10n-id="cross-user-udpate-warning"
                     hidden="true"/>
      </vbox>

#ifdef MOZ_MAINTENANCE_SERVICE
      <separator class="thin"/>
      <checkbox id="useService"
                data-l10n-id="use-service"
                preference="app.update.service.enabled"/>
#endif
    </html:fieldset>
#endif

    <hbox id="networkAndDiskspaceCategory"
          class="subcategory"
          data-category="paneGeneral">
      <html:h1 data-l10n-id="general-network-and-diskspace-header"/>
    </hbox>

    <!-- Networking & Disk Space -->
    <html:fieldset data-category="paneGeneral">
      <html:legend data-l10n-id="networking-legend"></html:legend>
      <hbox align="center">
        <description control="catProxiesButton"
                     data-l10n-id="proxy-config-description"
                     flex="1"/>
        <button id="catProxiesButton"
                data-l10n-id="network-settings-button"
                oncommand="gGeneralPane.showConnections();"/>
      </hbox>
    </html:fieldset>

    <html:fieldset data-category="paneGeneral">
      <html:legend data-l10n-id="offline-legend"></html:legend>
      <hbox align="center">
        <description data-l10n-id="offline-settings"
                     control="offlineSettingsButton"
                     flex="1"/>
        <button id="offlineSettingsButton"
                data-l10n-id="offline-settings-button"
                oncommand="gGeneralPane.showOffline();"/>
      </hbox>
    </html:fieldset>

    <html:fieldset data-category="paneGeneral">
      <html:legend data-l10n-id="diskspace-legend"></html:legend>
      <hbox align="center">
        <label id="actualDiskCacheSize" flex="1"/>
        <button id="clearCacheButton"
                data-l10n-id="clear-cache-button"
                oncommand="gGeneralPane.clearCache();"/>
      </hbox>
      <hbox>
        <checkbox preference="browser.cache.disk.smart_size.enabled"
                  id="allowSmartSize"
                  data-l10n-id="smart-cache-label"/>
      </hbox>
      <hbox align="center" class="indent">
        <label id="useCacheBefore" control="cacheSize"
               data-l10n-id="use-cache-before"/>
        <html:input id="cacheSize" type="number" class="size4" max="1024"
                    preference="browser.cache.disk.capacity"
                    aria-labelledby="useCacheBefore cacheSize useCacheAfter"/>
        <label id="useCacheAfter" data-l10n-id="use-cache-after" flex="1"/>
      </hbox>
      <hbox align="center">
          <checkbox id="offlineCompactFolder"
                    data-l10n-id="offline-compact-folder"
                    aria-labelledby="offlineCompactFolder offlineCompactFolderMin compactFolderMB"
                    preference="mail.prompt_purge_threshhold"
                    oncommand="gGeneralPane.updateCompactOptions(this.checked);"/>
          <html:input id="offlineCompactFolderMin" type="number" class="size4"
                      min="1" max="2048" value="200"
                      preference="mail.purge_threshhold_mb"
                      aria-labelledby="offlineCompactFolder offlineCompactFolderMin compactFolderMB"/>
          <label id="compactFolderMB" data-l10n-id="compact-folder-size" value=""/>
      </hbox>
    </html:fieldset>

    <html:fieldset data-category="paneGeneral">
      <html:legend data-l10n-id="general-indexing-label"></html:legend>
      <vbox>
        <hbox>
          <checkbox id="enableGloda"
                    preference="mailnews.database.global.indexer.enabled"
                    data-l10n-id="enable-gloda-search-label"/>
        </hbox>
        <hbox align="center">
          <label control="storeTypeMenulist" data-l10n-id="store-type-label"/>
          <menulist id="storeTypeMenulist"
                    oncommand="gGeneralPane.updateDefaultStore(this.selectedItem.value)">
            <menupopup id="storeTypeMenupopup">
              <menuitem id="mboxStore"
                        data-l10n-id="mbox-store-label"
                        value="@mozilla.org/msgstore/berkeleystore;1"/>
              <menuitem id="maildirStore"
                        data-l10n-id="maildir-store-label"
                        value="@mozilla.org/msgstore/maildirstore;1"/>
            </menupopup>
          </menulist>
        </hbox>
        <hbox>
          <checkbox id="allowHWAccel"
                    preference="layers.acceleration.disabled"
                    data-l10n-id="allow-hw-accel"/>
        </hbox>
      </vbox>
      <vbox>
      </vbox>
    </html:fieldset>

    <separator class="thin" data-category="paneGeneral"/>

    <html:fieldset data-category="paneGeneral">
      <hbox pack="end">
        <button id="configEditor"
                data-l10n-id="config-editor-button"
                oncommand="gGeneralPane.showConfigEdit();"/>
      </hbox>
    </html:fieldset>

  </prefpane>