<?xml version="1.0"?>
<?xml-stylesheet href="chrome://messenger/skin/" type="text/css"?>

<!DOCTYPE window SYSTEM "chrome://messenger/locale/am-server-top.dtd" >

<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        xmlns:html="http://www.w3.org/TR/REC-html40"
        class="dialog"
        align="vertical">

  <html:script src="chrome://messenger/content/am-server.js"/>

  <html:input type="hidden" name="server.type" id="server.type"/>
  <html:input type="hidden" name="server.hostName" id="server.hostName"/>
  <html:input type="hidden" name="server.username" id="server.username"/>

  <html:div>&serverSettings.label;</html:div>
  <box align="vertical">
  <html:table width="100%">
  <html:tr>
    <html:td>&serverType.label;</html:td>
    <html:td><html:div flex="80%" id="servertype.verbose"/></html:td>
  </html:tr>

  <html:tr>
    <html:td>&serverName.label;</html:td>
    <html:td><html:div flex="80%" id="servername.verbose"/></html:td>
  </html:tr>

    <html:tr>
      <html:td>&userName.label;</html:td>
      <html:td><html:div id="username.verbose"/></html:td>
    </html:tr>
  </html:table>

  <html:div><html:input name="server.rememberPassword"
                        type="checkbox"/>&savePassword.label;</html:div>
  <html:div><html:input name="server.doBiff"
                        type="checkbox"/>&biffStart.label;
            <html:input name="server.biffMinutes" type="text" size="3"/>
            &biffEnd.label;
  </html:div>
  </box>
  <tabcontrol flex="100%">
    <deck id="serverdeck">
      <!-- POP -->
      <box align="vertical" flex="100%">
        <html:div><html:input name="pop3.leaveMessagesOnServer" type="checkbox"/>&leaveOnServer.label;</html:div>
        <html:div><html:input name="pop3.deleteMailLeftOnServer" type="checkbox"/>&deleteOnServer.label;</html:div>
        <html:div><html:input name="server.downloadOnBiff"
                              type="checkbox"/>&downloadOnBiff.label;</html:div>
      </box>
      <!-- IMAP -->
      <box align="vertical" flex="100%">
        <html:div>&deleteMessagePrefix.label;</html:div>
        <html:div>
          <html:select name="imap.deleteModel">
            <html:option value="1">&modelMoveToTrash.label;</html:option>
            <html:option value="0">&modelMarkDeleted.label;</html:option>
            <html:option value="2">&modelDeleteImmediately.label;</html:option>
          </html:select>
        </html:div>
        <html:div>
          <html:input name="imap.cleanupInboxOnExit" type="checkbox"/>
          &expungeOnExit.label;
        </html:div>
        <html:div><html:input name="imap.emptyTrashOnExit" type="checkbox"/>&emptyTrashOnExit.label;</html:div>
      </box>
      <!-- News -->
      <box align="vertical" flex="100%">
        <box align="horizontal">
          <html:div>
          <html:input name="nntp.notifyOn" type="checkbox"/>
            &maxMessagesStart.label;
          </html:div>
  		  <html:div>
            <html:input name="nntp.maxArticles" type="text" size="6"/>
  		    &maxMessagesEnd.label;
          </html:div>
        </box>
	<box align="horizontal">
	<box align="vertical" flex="100%">
		<html:fieldset>
			<html:legend align="left">
				<html:div>&abbreviate.label;</html:div>
			</html:legend>
			<html:div>
				<html:input reversed="true" name="nntp.abbreviate" type="radio"/>
				<html:label>&abbreviateOn.label;</html:label>
			</html:div>
			<html:div>
				<html:input name="nntp.abbreviate" type="radio"/>
				<html:label>&abbreviateOff.label;</html:label>
			</html:div>
		</html:fieldset>
	</box>
	</box>
	<html:div>&newsrcFilePath.label;</html:div>
	<html:input type="text" name="nntp.newsrcFilePath" datatype="nsIFileSpec"/>
      </box>
      <!-- None -->
      <box align="vertical" flex="100%">
      </box>
    </deck>
  </tabcontrol>
  <box align="vertical">
    <html:div>&localPath.label;</html:div>
    <html:input type="text" name="server.localPath" datatype="nsIFileSpec"/>
  </box>
</window>
