summaryrefslogtreecommitdiffstats
path: root/mailnews/base/prefs/content/am-offline.xul
blob: 0c312dd749114afab1b4b969ad5769ad9d1626ae (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
147
148
149
150
151
152
153
154
155
156
157
158
<?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"?>

<!DOCTYPE page SYSTEM "chrome://messenger/locale/am-offline.dtd">

<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
      onload="parent.onPanelLoaded('am-offline.xul');">

  <vbox flex="1" style="overflow: auto;">
    <stringbundle id="bundle_prefs" src="chrome://messenger/locale/prefs.properties"/> 

    <script type="application/javascript" src="chrome://messenger/content/AccountManager.js"/>
    <script type="application/javascript" src="chrome://messenger/content/retention.js"/>
    <script type="application/javascript" src="chrome://messenger/content/am-offline.js"/>

    <label hidden="true" wsm_persist="true" id="server.type"/>  
    <label id="imap.autoSyncMaxAgeDays" hidden="true"
           wsm_persist="true" preftype="int"
           prefstring="mail.server.%serverkey%.autosync_max_age_days"/>

    <dialogheader id="headertitle"/>

    <groupbox id="offline.titlebox" hidefor="movemail,pop3,none,rss">
      <caption label="&syncGroupTitle.label;"/>

    <checkbox hidefor="movemail,pop3,nntp,none" 
              id="offline.folders" label="&allFoldersOffline.label;"
              oncommand="toggleOffline()"
              accesskey="&allFoldersOffline.accesskey;"/>

    <separator class="thin" hidefor="movemail,pop3,nntp,none"/>

    <hbox hidefor="movemail,pop3,nntp,none" align="right">
        <button label="&offlineImapAdvancedOffline.label;" accesskey="&offlineImapAdvancedOffline.accesskey;"
                oncommand="onClickSelect()" id="selectImapFoldersButton" class="selectForOfflineUseButton"/>
    </hbox>

    <hbox hidefor="movemail,pop3,imap,none" align="right">
        <button label="&offlineSelectNntp.label;" accesskey="&offlineSelectNntp.accesskey;"
                oncommand="onClickSelect()" id="selectNewsgroupsButton" class="selectForOfflineUseButton"/>
    </hbox>

    </groupbox>

    <groupbox id="diskspace.titlebox">
      <caption label="&diskspaceGroupTitle.label;" hidefor="movemail,pop3,none,rss"/>

    <description hidefor="pop3,nntp,movemail,none,rss">&doNotDownloadImap.label;</description>
    <description hidefor="pop3,imap,movemail,none,rss">&doNotDownloadNntp.label;</description>
    <description hidefor="imap,nntp,none,rss">&doNotDownloadPop3Movemail.label;</description>

    <!-- IMAP Autosync Preference -->
    <radiogroup hidefor="pop3,nntp,movemail,none,rss" id="autosyncSelect" class="indent">
      <radio id="useAutosync.AllMsg" value="0" accesskey="&allAutosync.accesskey;"
             label="&allAutosync.label;" oncommand="onAutosyncChange();"/>
      <hbox flex="1" align="center">
        <radio id="useAutosync.ByAge" accesskey="&ageAutosync.accesskey;"
               value="1" label="&ageAutosyncBefore.label;" oncommand="onAutosyncChange();"/>
        <textbox id="autosyncValue" type="number" size="4" min="1"
                 class="autosync" onchange="onAutosyncChange();"
                 aria-labelledby="ageAutosyncBefore autosyncValue ageAutosyncMiddle autosyncInterval ageAutosyncAfter"/>
        <label id="ageAutosyncMiddle" control="autosyncValue" value="&ageAutosyncMiddle.label;"/>
        <menulist id="autosyncInterval" onselect="onAutosyncChange();">
          <menupopup>
            <menuitem label="&dayAgeInterval.label;" value="1"/>
            <menuitem label="&weekAgeInterval.label;" value="7"/>
            <menuitem label="&monthAgeInterval.label;" value="31"/>
            <menuitem label="&yearAgeInterval.label;" value="365"/>
          </menupopup>
        </menulist>
        <label id="ageAutosyncAfter" control="autosyncInterval" value="&ageAutosyncAfter.label;"/>
      </hbox>
    </radiogroup>

    <hbox align="center" class="indent" hidefor="rss">
        <checkbox hidefor="movemail,pop3,imap,none"
                  id="nntp.notDownloadRead" wsm_persist="true"
                  label="&nntpNotDownloadRead.label;"
                  accesskey="&nntpNotDownloadRead.accesskey;"/>
    </hbox>

    <hbox align="center" class="indent" hidefor="none,rss">
        <checkbox wsm_persist="true" id="offline.notDownload" hidefor="imap"
                  label="&offlineNotDownload.label;"
                  accesskey="&offlineNotDownload.accesskey;"
                  oncommand="onCheckItem('offline.notDownloadMin', 'offline.notDownload');"/>
        <checkbox wsm_persist="true" id="autosync.notDownload" hidefor="pop3,nntp,movemail"
                  label="&autosyncNotDownload.label;"
                  accesskey="&autosyncNotDownload.accesskey;"
                  oncommand="onAutosyncNotDownload();"/>
        <textbox wsm_persist="true" id="offline.notDownloadMin"
                 type="number" min="1" increment="10" size="4" value="50"
                 aria-labelledby="offline.notDownload offline.notDownloadMin kbLabel"/>
        <label value="&kb.label;" control="offline.notDownloadMin" id="kbLabel"/>
    </hbox>

    <hbox align="center" class="indent" hidefor="movemail,pop3,imap,none,rss">
        <checkbox wsm_persist="true" id="nntp.downloadMsg"
                  label="&nntpDownloadMsg.label;"
                  accesskey="&nntpDownloadMsg.accesskey;"
                  oncommand="onCheckItem('nntp.downloadMsgMin', 'nntp.downloadMsg');"/>
        <textbox wsm_persist="true" id="nntp.downloadMsgMin"
                 type="number" min="1" size="2" value="30"
                 aria-labelledby="nntp.downloadMsg nntp.downloadMsgMin daysOldLabel"/>
        <label value="&daysOld.label;" control="nntp.downloadMsgMin"
               id="daysOldLabel"/>
    </hbox>

    <vbox align="start">
    <separator hidefor="none,rss"/>
    <label id="retentionDescription" hidefor="imap,pop3" class="desc" control="retention.keepMsg">&retentionCleanup.label;</label>
    <label id="retentionDescriptionImap" hidefor="movemail,pop3,nntp,none,rss" class="desc" control="retention.keepMsg">&retentionCleanupImap.label;</label>
    <label id="retentionDescriptionPop" hidefor="movemail,imap,nntp,none,rss" class="desc" control="retention.keepMsg">&retentionCleanupPop.label;</label>

    <radiogroup hidefor="" confirmfor="imap,pop3" id="retention.keepMsg" class="indent"
                oncommand="warnServerRemove(this);">
        <radio id="retention.keepAllMsg" value="1" accesskey="&retentionKeepAll.accesskey;"
            label="&retentionKeepAll.label;" oncommand="onCheckKeepMsg();"/>
        <hbox flex="1" align="center">
            <radio id="retention.keepNewMsg" accesskey="&retentionKeepRecent.accesskey;"
                value="3" label="&retentionKeepRecent.label;" oncommand="onCheckKeepMsg();"/>
            <textbox id="retention.keepNewMsgMin"
                     type="number" min="1" increment="10" size="4" value="2000"
                     aria-labelledby="retention.keepNewMsg retention.keepNewMsgMin newMsgLabel"/>
            <label value="&message.label;" control="retention.keepNewMsgMin" id="newMsgLabel"/>
        </hbox>
        <hbox flex="1" align="center">
            <radio id="retention.keepOldMsg" accesskey="&retentionKeepMsg.accesskey;"
                value="2" label="&retentionKeepMsg.label;" oncommand="onCheckKeepMsg();"/>
            <textbox id="retention.keepOldMsgMin"
                     type="number" min="1" size="4" value="30"
                     aria-labelledby="retention.keepOldMsg retention.keepOldMsgMin oldMsgLabel"/>
            <label value="&daysOld.label;" control="retention.keepOldMsgMin" id="oldMsgLabel"/>
        </hbox>
    </radiogroup>

    <hbox align="center" class="indent">
      <checkbox id="retention.applyToFlagged"
                label="&retentionApplyToFlagged.label;" hidefor=""
                accesskey="&retentionApplyToFlagged.accesskey;"
                checked="true"/>
    </hbox>
    <hbox align="center" class="indent" hidefor="movemail,pop3,imap,none,rss">
        <checkbox id="nntp.removeBody" accesskey="&nntpRemoveMsgBody.accesskey;"
                  label="&nntpRemoveMsgBody.label;" oncommand="onCheckItem('nntp.removeBodyMin','nntp.removeBody');"/>
        <textbox id="nntp.removeBodyMin" size="2" value="30"
                 type="number" min="1"
                 aria-labelledby="nntp.removeBody nntp.removeBodyMin daysOldMsg"/>
        <label value="&daysOld.label;" control="nntp.removeBodyMin" id="daysOldMsg"/>
    </hbox>
    </vbox>
    </groupbox>
  </vbox>
</page>