mailnews/base/prefs/resources/content/smtpEditOverlay.xul
author Karsten Düsterloh <mnyromyr@tprac.de>
Fri, 19 Jun 2009 23:35:33 +0200
changeset 2895 6f5baa0cddd240bb7c0ecc6e9f57e78adc94b90a
parent 2340 1fa62d65ffcdd1bd9da85e183b4c6d075e816cff
permissions -rw-r--r--
Merge for rev. 2894

<?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-1999
 the Initial Developer. All Rights Reserved.

 Contributor(s):
   Alec Flett <alecf@netscape.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 ***** -->

<!DOCTYPE overlay SYSTEM "chrome://messenger/locale/smtpEditOverlay.dtd">

<overlay xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <script type="application/javascript" src="smtpEditOverlay.js"/>

  <vbox id="smtpServerEditor">
      <groupbox>
          <caption label="&settings.caption;"/>
          <grid flex="1">
              <columns>
                  <column/>
                  <column flex="1"/>
              </columns>
              <rows>
                  <row align="center">
                      <hbox pack="end"><label value="&serverDescription.label;" accesskey="&serverDescription.accesskey;"
                                              control="smtp.description"/></hbox>
                       <textbox id="smtp.description" flex="1" preftype="string" prefstring="mail.smtpserver.%serverkey%.description"/>
                  </row>

                  <row align="center">
                      <hbox pack="end"><label value="&serverName.label;" accesskey="&serverName.accesskey;" control="smtp.hostname"/></hbox>
                      <textbox id="smtp.hostname" flex="1" preftype="string" class="uri-element" prefstring="mail.smtpserver.%serverkey%.hostname"/>
                  </row>
                  <row align="center">
                      <hbox pack="end"><label value="&serverPort.label;" accesskey="&serverPort.accesskey;" control="smtp.port"/>
                      </hbox>

                      <hbox align="center">
                          <textbox id="smtp.port" size="4"
                                   preftype="int"
                                   prefstring="mail.smtpserver.%serverkey%.port"/>
                          <label value="&serverPortDefault.label;"/>
                          <label id="smtp.defaultPort"/>
                      </hbox>
                  </row>
              </rows>
          </grid>
      </groupbox>

      <separator class="thin"/>

      <groupbox>
        <caption label="&security.caption;"/>
        <vbox>
            <!-- This hidden one will hold the integer version
                 of smtp.useUsername -->
            <label hidden="true" id="smtp.authMethod"/>
            <hbox align="center">
            <checkbox id="smtp.useUsername" label="&alwaysUseUsername.label;"
                      accesskey="&alwaysUseUsername.accesskey;"
                      oncommand="onUseUsername(event.target,true);"
                      prefattribute="value"
                      prefstring="mail.smtpserver.%serverkey%.use_username"/>
            </hbox>
            <vbox class="indent">
              <hbox align="center">
                <label id="smtp.username.label" value="&userName.label;"
                       accesskey="&userName.accesskey;" control="smtp.username"/>
                <textbox id="smtp.username" flex="1"
                         preftype="string"
                         prefstring="mail.smtpserver.%serverkey%.username"/>
              </hbox>
              <checkbox id="smtp.useSecAuth"
                        label="&useSecAuth.label;"
                        accesskey="&useSecAuth.accesskey;"
                        prefattribute="value"
                        prefstring="mail.smtpserver.%serverkey%.useSecAuth"/>
            </vbox>
        </vbox>

        <separator class="thin"/>

        <hbox align="center">
          <label value="&connectionSecurity.label;"
                accesskey="&connectionSecurity.accesskey;"
                control="smtp.trySSL"/>
          <menulist id="smtp.trySSL" oncommand="selectProtocol(true);"
                    prefstring="mail.smtpserver.%serverkey%.try_ssl">
            <menupopup id="smtp.trySSLPopup">
              <menuitem value="0" label="&connectionSecurityType-0.label;"/>
              <menuitem id="connectionSecurityType-1"
                        value="1" label="&connectionSecurityType-1.label;"
                        disabled="true" hidden="true"/>
              <menuitem value="2" label="&connectionSecurityType-2.label;"/>
              <menuitem value="3" label="&connectionSecurityType-3.label;"/>
            </menupopup>
          </menulist>
        </hbox>
      </groupbox>
  </vbox>
</overlay>