RetroZilla/mailnews/base/prefs/resources/content/am-server.xul

347 lines
15 KiB
Plaintext
Raw Normal View History

2015-10-21 05:03:22 +02:00
<?xml version="1.0"?>
<!--
***** BEGIN LICENSE BLOCK *****
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla 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/MPL/
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 the Initial Developer are Copyright (C) 1998-2003
the Initial Developer. All Rights Reserved.
Contributor(s):
Håkan Waara <hwaara@chello.se>
bienvenu@nventure.com
Alternatively, the contents of this file may be used under the terms of
either of the GNU General Public License Version 2 or later (the "GPL"),
or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
in which case the provisions of the GPL or the LGPL are applicable instead
of those above. If you wish to allow use of your version of this file only
under the terms of either the GPL or the LGPL, and not to allow others to
use your version of this file under the terms of the MPL, indicate your
decision by deleting the provisions above and replace them with the notice
and other provisions required by the GPL or the LGPL. If you do not delete
the provisions above, a recipient may use your version of this file under
the terms of any one of the MPL, the GPL or the LGPL.
***** END LICENSE BLOCK ***** -->
<?xml-stylesheet href="chrome://messenger/skin/accountManage.css" type="text/css"?>
<!DOCTYPE page SYSTEM "chrome://messenger/locale/am-server-top.dtd" >
<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
onload="parent.onPanelLoaded('am-server.xul');">
<script type="application/x-javascript" src="chrome://messenger/content/AccountManager.js"/>
<script type="application/x-javascript" src="chrome://messenger/content/am-server.js"/>
<script type="application/x-javascript" src="chrome://messenger/content/am-prefs.js"/>
<script type="application/x-javascript" src="chrome://messenger/content/amUtils.js"/>
<stringbundle id="bundle_messenger" src="chrome://messenger/locale/messenger.properties"/>
<broadcaster id="broadcaster_doBiff"/>
<broadcaster id="broadcaster_notify"/>
<label hidden="true" wsm_persist="true" id="server.type"/>
<dialogheader title="&serverSettings.label;"/>
<grid>
<columns>
<column/>
<column/>
</columns>
<rows>
<row align="center">
<label value="&serverType.label;"/>
<label id="servertype.verbose"/>
</row>
<row align="center">
<hbox>
<label value="&serverName.label;" accesskey="&serverName.accesskey;"
control="server.realHostName"/>
</hbox>
<hbox align="center">
<label id="fixedServerName" collapsed="true" use="server.realHostName"/>
<textbox wsm_persist="true" size="20" id="server.realHostName"
prefstring="mail.server.%serverkey%.realhostname" class="uri-element"/>
<label hidefor="movemail" value="&port.label;"
accesskey="&port.accesskey;" control="server.port"/>
<label id="fixedServerPort" hidefor="movemail"
collapsed="true" use="server.port"/>
<textbox wsm_persist="true" size="3" id="server.port"
preftype="int" hidefor="movemail"
prefstring="mail.server.%serverkey%.port"/>
<label value="&serverPortDefault.label;" hidefor="movemail"/>
<label id="defaultPort" hidefor="movemail"/>
</hbox>
</row>
<row align="center">
<hbox align="center" hidefor="nntp">
<label value="&userName.label;"
accesskey="&userName.accesskey;"
control="server.realUsername"/>
</hbox>
<hbox align="center" hidefor="nntp">
<label id="fixedUserName" collapsed="true" use="server.realUsername"/>
<textbox wsm_persist="true" size="20" id="server.realUsername"
prefstring="mail.server.%serverkey%.realusername"/>
</hbox>
</row>
</rows>
</grid>
<separator class="thin"/>
<groupbox hidefor="movemail">
<caption label="&securitySettings.label;"/>
<vbox align="start" hidefor="nntp,movemail">
<label value="&socketType.label;"/>
<radiogroup wsm_persist="true" id="server.socketType"
prefattribute="value"
prefstring="mail.server.%serverkey%.socketType"
oncommand="secureSelect();"
orient="horizontal" class="indent">
<radio value="0" id="neverSecure"
label="&neverSecure.label;" accesskey="&neverSecure.accesskey;"/>
<radio value="1" id="sometimesSecure"
label="&sometimesSecure.label;" accesskey="&sometimesSecure.accesskey;"/>
<radio value="2" id="alwaysSecure"
label="&alwaysSecure.label;" accesskey="&alwaysSecure.accesskey;"/>
<radio value="3" id="alwaysSSL"
label="&alwaysSSL.label;" accesskey="&alwaysSSL.accesskey;"/>
</radiogroup>
</vbox>
<checkbox wsm_persist="true" id="server.isSecure"
label="&isSecure.label;" hidefor="pop3,imap,movemail"
oncommand="secureSelect();"
accesskey="&isSecure.accesskey;"
prefattribute="value"
prefstring="mail.server.%serverkey%.isSecure"/>
<checkbox wsm_persist="true" id="server.useSecAuth"
label="&useSecAuth.label;" hidefor="nntp,movemail"
accesskey="&useSecAuth.accesskey;"
prefattribute="value"
prefstring="mail.server.%serverkey%.useSecAuth"/>
</groupbox>
<groupbox>
<caption label="&serverSettings.label;"/>
<vbox align="start">
<checkbox wsm_persist="true"
id="server.loginAtStartUp"
label="&loginAtStartup.label;"
accesskey="&loginAtStartup.accesskey;"
prefattribute="value"
prefstring="mail.server.%serverkey%.login_at_startup"/>
</vbox>
<!--
<checkbox wsm_persist="true" id="server.rememberPassword" hidefor="nntp"
value="&savePassword.label;"/>
-->
<hbox align="center">
<checkbox wsm_persist="true" id="server.doBiff" label="&biffStart.label;"
accesskey="&biffStart.accesskey;"
oncommand="setupBiffUI();"
prefattribute="value"
prefstring="mail.server.%serverkey%.check_new_mail"/>
<textbox wsm_persist="true" id="server.biffMinutes" size="3"
observes="broadcaster_doBiff"
preftype="int"
prefstring="mail.server.%serverkey%.check_time"/>
<label id="biffEnd" control="server.biffMinutes" value="&biffEnd.label;"/>
</hbox>
<!-- POP3 -->
<vbox align="start" hidefor="imap,nntp,movemail">
<checkbox wsm_persist="true" id="server.downloadOnBiff"
label="&downloadOnBiff.label;" prefattribute="value"
accesskey="&downloadOnBiff.accesskey;"
prefstring="mail.server.%serverkey%.download_on_biff"/>
<checkbox wsm_persist="true" id="pop3.headersOnly"
label="&headersOnly.label;"
accesskey="&headersOnly.accesskey;"
prefattribute="value"
prefstring="mail.server.%serverkey%.headers_only"/>
<checkbox wsm_persist="true" id="pop3.leaveMessagesOnServer"
label="&leaveOnServer.label;" oncommand="setupMailOnServerUI();"
accesskey="&leaveOnServer.accesskey;"
prefattribute="value"
prefstring="mail.server.%serverkey%.leave_on_server"/>
<hbox align="center">
<checkbox wsm_persist="true" id="pop3.deleteByAgeFromServer" class="indent"
label="&deleteByAgeFromServer.label;" oncommand="setupAgeMsgOnServerUI();"
accesskey="&deleteByAgeFromServer.accesskey;"
prefattribute="value"
prefstring="mail.server.%serverkey%.delete_by_age_from_server"/>
<textbox wsm_persist="true" id="pop3.numDaysToLeaveOnServer" size="3"
preftype="int"
prefstring="mail.server.%serverkey%.num_days_to_leave_on_server"/>
<label id="daysEnd" control="pop3.numDaysToLeaveOnServer" value="&daysEnd.label;"/>
</hbox>
<checkbox wsm_persist="true" id="pop3.deleteMailLeftOnServer" class="indent"
label="&deleteOnServer2.label;"
accesskey="&deleteOnServer2.accesskey;"
prefattribute="value"
prefstring="mail.server.%serverkey%.delete_mail_left_on_server"/>
<!-- hidden elements for data transfer to and from advanced... dialog -->
<hbox flex="1" hidefor="imap,nntp,movemail" hidden="true">
<checkbox hidden="true" wsm_persist="true" id="pop3.deferGetNewMail"
prefattribute="value"
prefstring="mail.server.%serverkey%.deferGetNewMail"/>
<label hidden="true" wsm_persist="true" id="pop3.deferredToAccount"
prefattribute="value"
prefstring="mail.server.%serverkey%.deferredToAccount"/>
</hbox>
</vbox>
<!-- IMAP -->
<hbox align="center" id="imap.deleteModel.box" hidefor="pop3,nntp,movemail">
<label value="&deleteMessagePrefix.label;"
accesskey="&deleteMessagePrefix.accesskey;"
control="imap.deleteModel"/>/>
<menulist wsm_persist="true" id="imap.deleteModel" prefstring="mail.server.%serverkey%.delete_model">
<menupopup>
<menuitem value="1" label="&modelMoveToTrash.label;"/>
<menuitem value="0" label="&modelMarkDeleted.label;"/>
<menuitem value="2" label="&modelDeleteImmediately.label;"/>
</menupopup>
</menulist>
<spacer flex="1"/>
</hbox>
<hbox flex="1" hidefor="pop3,nntp,movemail" hidden="true">
<checkbox hidden="true" wsm_persist="true" id="imap.dualUseFolders"
prefattribute="value"
prefstring="mail.server.%serverkey%.dual_use_folders"/>
<checkbox hidden="true" wsm_persist="true" id="imap.usingSubscription"
prefattribute="value"
prefstring="mail.server.%serverkey%.using_subscription"/>
<checkbox hidden="true" wsm_persist="true" id="imap.useIdle"
prefattribute="value"
prefstring="mail.server.%serverkey%.use_idle"/>
<label hidden="true" wsm_persist="true" id="imap.maximumConnectionsNumber"/>
<label hidden="true" wsm_persist="true" id="imap.personalNamespace"/>
<label hidden="true" wsm_persist="true" id="imap.publicNamespace"/>
<label hidden="true" wsm_persist="true" id="imap.otherUsersNamespace"/>
<label hidden="true" wsm_persist="true" id="imap.serverDirectory"/>
<checkbox hidden="true" wsm_persist="true" id="imap.overrideNamespaces"
prefattribute="value"
prefstring="mail.server.%serverkey%.override_namespaces"/>
</hbox>
<!-- NNTP -->
<hbox hidefor="pop3,imap,movemail" align="center">
<checkbox wsm_persist="true" id="nntp.notifyOn"
label="&maxMessagesStart.label;"
accesskey="&maxMessagesStart.accesskey;"
oncommand="setupNotifyUI();"
prefattribute="value"
prefstring="mail.server.%serverkey%.notify.on"/>
<textbox wsm_persist="true" id="nntp.maxArticles" size="6"
observes="broadcaster_notify"
preftype="int"
prefstring="mail.server.%serverkey%.max_articles"/>
<label control="nntp.maxArticles" value="&maxMessagesEnd.label;"
observes="broadcaster_notify"/>
</hbox>
<checkbox hidefor="pop3,imap,movemail" wsm_persist="true" id="nntp.pushAuth"
label="&alwaysAuthenticate.label;"
accesskey="&alwaysAuthenticate.accesskey;"
prefattribute="value"
prefstring="mail.server.%serverkey%.always_authenticate"/>
<!-- take out for now - bug 45079
<hbox flex="1" hidefor="pop3,imap,movemail">
<groupbox>
<caption class="header" label="&abbreviate.label;"/>
<radiogroup wsm_persist="true" id="nntp.abbreviate">
<radio wsm_persist="true" value="true"
label="&abbreviateOn.label;"/>
<radio wsm_persist="true" value="false"
label="&abbreviateOff.label;"/>
</radiogroup>
</groupbox>
</hbox>
-->
<hbox align="end">
<vbox align="start" flex="1" id="ExitHandlingBox">
<checkbox hidefor="pop3,nntp,movemail" wsm_persist="true" id="imap.cleanupInboxOnExit"
label="&expungeOnExit.label;"
accesskey="&expungeOnExit.accesskey;"
prefattribute="value"
prefstring="mail.server.%serverkey%.cleanup_inbox_on_exit"/>
<checkbox hidefor="nntp" wsm_persist="true" id="server.emptyTrashOnExit"
label="&emptyTrashOnExit.label;"
accesskey="&emptyTrashOnExit.accesskey;"
prefattribute="value"
prefstring="mail.server.%serverkey%.empty_trash_on_exit"/>
</vbox>
<button label="&advancedButton.label;"
accesskey="&advancedButton.accesskey;"
oncommand="onAdvanced();"
wsm_persist="true" id="server.advancedbutton"
prefstring="mail.server.%serverkey%.advanced.disable"
hidefor="nntp,movemail"/>
</hbox>
<vbox hidefor="imap,pop3,movemail">
<label value="&newsrcFilePath.label;" control="nntp.newsrcFilePath"
accesskey="&newsrcFilePath.accesskey;"/>
<hbox align="center">
<textbox readonly="true" wsm_persist="true" flex="1" id="nntp.newsrcFilePath"
datatype="nsIFileSpec"
prefstring="mail.server.%serverkey%.newsrc.file" class="uri-element"/>
<button id="browseForNewsrc" label="&browseNewsrc.label;" filepickertitle="&newsrcPicker.label;"
accesskey="&browseNewsrc.accesskey;" oncommand="BrowseForNewsrc()"/>
</hbox>
</vbox>
</groupbox>
<separator class="thin"/>
<vbox>
<label value="&localPath.label;" control="server.localPath"
accesskey="&localPath.accesskey;"/>
<hbox align="center">
<textbox readonly="true" wsm_persist="true" flex="1" id="server.localPath" datatype="nsIFileSpec"
prefstring="mail.server.%serverkey%.directory" class="uri-element"/>
<button id="browseForLocalFolder" label="&browseFolder.label;" filepickertitle="&localFolderPicker.label;"
accesskey="&browseFolder.accesskey;" oncommand="BrowseForLocalFolders()"/>
</hbox>
</vbox>
<separator class="thin"/>
<hbox hidefor="imap,pop3,movemail" align="center" valign="middle" iscontrolcontainer="true">
<label value="&serverDefaultCharset.label;" control="nntp.charset"/>
<menulist hidable="true" hidefor="imap,pop3,movemail" wsm_persist="true" id="nntp.charset"
ref="NC:DecodersRoot" datasources="rdf:charset-menu"
preftype="string" prefstring="mail.server.%serverkey%.charset">
<template>
<menupopup>
<menuitem label="rdf:http://home.netscape.com/NC-rdf#Name" value="..." uri="..."/>
</menupopup>
</template>
</menulist>
</hbox>
</page>