summaryrefslogtreecommitdiffstats
path: root/mailnews/base/prefs/content/am-server-advanced.xul
blob: 82b85b97575dc42cbb1ac2ec0659c57d2b0556fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<?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/. -->

<?xml-stylesheet href="chrome://messenger/skin/accountManage.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/messenger.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/folderMenus.css" type="text/css"?>

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

<dialog
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        title="&serverAdvanced.label;"
        buttons="accept,cancel"
        onload="onLoad();"
        ondialogaccept="return onOk();">

  <script type="application/javascript"
          src="chrome://messenger/content/am-server-advanced.js"/>
  <stringbundle id="bundle_prefs"
                src="chrome://messenger/locale/prefs.properties"/>

    <label id="serverPrettyName"/>

    <separator class="thin"/>

    <!-- IMAP Panel -->
    <vbox id="imapPanel">
      <hbox align="center">
        <label value="&serverDirectory.label;"
               accesskey="&serverDirectory.accesskey;"
               control="serverDirectory"/>
        <textbox amsa_persist="true" id="serverDirectory"/>
      </hbox>

      <checkbox amsa_persist="true" id="usingSubscription"
                label="&usingSubscription.label;"
                accesskey="&usingSubscription.accesskey;"/>

      <checkbox amsa_persist="true" id="dualUseFolders"
                label="&dualUseFolders.label;"
                accesskey="&dualUseFolders.accesskey;"/>

      <separator class="groove"/>
      <row>
        <hbox align="center">
          <label control="maximumConnectionsNumber"
                 value="&maximumConnectionsNumber.label;"
                 accesskey="&maximumConnectionsNumber.accesskey;"/>
          <textbox amsa_persist="true" size="3" type="number"
                   min="1" max="1000" id="maximumConnectionsNumber"/>
        </hbox>
      </row>

      <separator class="groove"/>
      <description>&namespaceDesc.label;</description>
      <grid>
        <columns>
          <column/>
          <column/>
          <column/>
        </columns>
        <rows>
          <row align="center">
            <separator class="indent"/>
            <label control="personalNamespace" value="&personalNamespace.label;"
                   accesskey="&personalNamespace.accesskey;"/>
            <textbox amsa_persist="true" id="personalNamespace" />
          </row>
          <row align="center">
            <separator class="indent"/>
            <label control="publicNamespace" value="&publicNamespace.label;"
                   accesskey="&publicNamespace.accesskey;"/>
            <textbox amsa_persist="true" id="publicNamespace"/>
          </row>
          <row align="center">
            <separator class="indent"/>
            <label control="otherUsersNamespace" value="&otherUsersNamespace.label;"
                   accesskey="&otherUsersNamespace.accesskey;"/>
            <textbox amsa_persist="true" id="otherUsersNamespace"/>
          </row>
        </rows>
      </grid>
      <grid>
        <columns>
          <column/>
          <column/>
        </columns>
        <rows>
          <row align="center">
            <separator class="indent"/>
            <checkbox amsa_persist="true" id="overrideNamespaces"
                      label="&overrideNamespaces.label;"
                      accesskey="&overrideNamespaces.accesskey;"/>
          </row>
        </rows>
      </grid>
    </vbox>


    <!-- POP3 Panel -->
    <vbox id="pop3Panel">
      <label flex="1" control="folderStorage">&pop3DeferringDesc.label;</label>
      <hbox align="center">
        <radiogroup id="folderStorage"
                    orient="horizontal"
                    amsa_persist="true"
                    onselect="updateInboxAccount(this.selectedIndex == 1);">
          <rows>
            <row>
              <radio id="deferToCurrentAccount"
                     value="currentAccount"
                     label="&accountInbox.label;"
                     accesskey="&accountInbox.accesskey;"/>
            </row>
            <row>
              <vbox>
              <hbox>
              <radio id="deferToOtherAccount"
                     value="otherAccount"
                     label="&deferToServer.label;"
                     accesskey="&deferToServer.accesskey;">
              </radio>
              <menulist id="deferredServerFolderPicker"
                        class="folderMenuItem"
                        aria-labelledby="deferToServer">
                <menupopup id="deferredServerPopup"
                           type="folder"
                           expandFolders="false"
                           mode="deferred"
                           oncommand="this.selectFolder(event.target._folder);"/>
              </menulist>
              </hbox>
              <checkbox amsa_persist="true" id="deferGetNewMail"
                        label="&deferGetNewMail.label;" class="indent"
                        accesskey="&deferGetNewMail.accesskey;"/>
              </vbox>
            </row>
          </rows>
        </radiogroup>
      </hbox>

    </vbox>
</dialog>