1 <table summary="{t}Mail settings{/t}" style='width:100%;'>
2 <tr>
3 <td style='width:50%; '>
5 <h3>{t}Generic{/t}</h3>
7 <table summary="{t}Mail address configuration{/t}">
8 {if !$multiple_support}
9 <tr>
10 <td><label for="mail">{t}Primary address{/t}</label>{$must}</td>
11 <td>
12 {if !$isModifyableMail && $initially_was_account}
13 <input type='text' disabled size=30 value="{$mail}">
14 {else}
15 {if $domainSelectionEnabled}
16 {render acl=$mailACL}
17 <input type='text' id="mail" name="mail" size=20 maxlength=65 value="{$mail}">
18 {/render}
19 @<select name='MailDomain' size=1>
20 {html_options values=$MailDomains output=$MailDomains selected=$MailDomain}
21 </select>
22 {else}
23 {render acl=$mailACL}
24 <input type='text' id="mail" name="mail" size=35 maxlength=65 value="{$mail}">
25 {/render}
26 {/if}
27 {/if}
28 </td>
29 </tr>
30 <tr>
31 <td><label for="gosaMailServer">{t}Server{/t}</label></td>
32 <td>
33 {if !$isModifyableServer && $initially_was_account}
34 <input type='text' disabled size=30 value="{$gosaMailServer}">
35 {else}
37 {render acl=$gosaMailServerACL}
38 <select size="1" id="gosaMailServer" name="gosaMailServer" title="{t}Specify the mail server where the user will be hosted on{/t}">
39 {html_options values=$MailServers output=$MailServers selected=$gosaMailServer}
40 <option disabled> </option>
41 </select>
42 {/render}
43 {/if}
44 </td>
45 </tr>
46 {/if}
48 <tr>
49 <td>
50 </td>
51 </tr>
52 {if $quotaEnabled}
53 <tr>
54 <td>{t}Quota usage{/t}</td>
55 <td>{$quotaUsage}</td>
56 </tr>
57 <tr>
58 <td><label for="gosaMailQuota">{t}Quota size{/t}</label></td>
59 <td>
60 {render acl=$gosaMailQuotaACL checkbox=$multiple_support checked=$use_gosaMailQuota}
61 <input id="gosaMailQuota" name="gosaMailQuota" size="6" align="middle" maxlength="60"
62 value="{$gosaMailQuota}"> MB
63 {/render}
64 </td>
65 </tr>
66 {/if}
67 </table>
68 </td>
69 <td class='left-border'>
71
72 </td>
73 <td>
74 {if !$multiple_support}
75 <h3>
76 <label for="alternates_list"> {t}Alternative addresses{/t}</label></h3>
77 {render acl=$gosaMailAlternateAddressACL}
78 <select id="alternates_list" style="width:100%;height:100px;" name="alternates_list[]" size="15" multiple
79 title="{t}List of alternative mail addresses{/t}">
80 {html_options values=$gosaMailAlternateAddress output=$gosaMailAlternateAddress}
81 <option disabled> </option>
82 {/render}
83 </select>
84 <br />
85 {render acl=$gosaMailAlternateAddressACL}
86 <input type='text' name="alternate_address" size="30" align="middle" maxlength="65" value="">
87 {/render}
88 {render acl=$gosaMailAlternateAddressACL}
89 <button type='submit' name='add_alternate'>{msgPool type=addButton}</button>
91 {/render}
92 {render acl=$gosaMailAlternateAddressACL}
93 <button type='submit' name='delete_alternate'>{msgPool type=delButton}</button>
95 {/render}
96 {/if}
97 </td>
98 </tr>
99 <tr>
100 <td colspan="3">
101 <hr>
102 <table summary="{t}Mail account configration flags{/t}">
103 <tr>
104 <td>
105 {render acl=$gosaMailDeliveryModeCACL}
106 <input class="center" type=checkbox id="own_script" name="own_script" value="1" {$own_script}
107 onClick="
108 changeState('sieveManagement');
109 changeState('drop_own_mails');
110 changeState('use_vacation');
111 changeState('use_spam_filter');
112 changeState('use_mailsize_limit');
113 changeState('import_vacation');
114 changeState('vacation_template');
115 changeState('only_local');
116 changeState('gosaVacationMessage');
117 changeState('gosaSpamSortLevel');
118 changeState('gosaSpamMailbox');
119 changeState('gosaMailMaxSize');
120 changeStates();"> {t}Use custom sieve script{/t} <b>({t}disables all Mail options!{/t})</b>
121 {/render}
122 </td>
123 </tr>
124 {if $allowSieveManagement}
125 <tr>
126 <td>
127 {render acl=$sieveManagementACL}
128 <button type='submit' name='sieveManagement' id="sieveManagement" {if $own_script == ""} disabled {/if}
129 >{t}Sieve Management{/t}</button>
131 {/render}
132 </td>
133 </tr>
134 {/if}
135 </table>
136 </td>
137 </tr>
138 <tr>
139 <td colspan="3">
140 <hr>
141 </td>
142 </tr>
143 </table>
145 <table summary="{t}Spam filter configuration{/t}">
146 <tr style="padding-bottom:0px;">
147 <td style='width:50%; '>
150 <div>
151 <div style='float:left'>
152 {render acl=$gosaMailDeliveryModeIACL checkbox=$multiple_support checked=$use_drop_own_mails}
153 <input {if $own_script != ""} disabled {/if} class="center" id='drop_own_mails'
154 type=checkbox name="drop_own_mails" value="1" {$drop_own_mails}
155 title="{t}Select if you want to forward mails without getting own copies of them{/t}">
156 {/render}
157 </div>
158 <div style='padding-left: 25px;'>
159 {t}No delivery to own mailbox{/t}
160 </div>
161 </div>
163 <div class='clear'></div>
165 <div>
166 <div style='float:left'>
167 {render acl=$gosaMailDeliveryModeVACL checkbox=$multiple_support checked=$use_use_vacation}
168 <input type=checkbox name="use_vacation" value="1" {$use_vacation}
169 id="use_vacation" {if $own_script != ""} disabled {/if}
170 title="{t}Select to automatically response with the vacation message defined below{/t}" class="center"
171 onclick="changeStates()">
172 {/render}
173 </div>
174 <div style='padding-left: 25px;'>
175 {t}Activate vacation message{/t}
176 </div>
177 </div>
179 <div class='clear'></div>
181 {if $rangeEnabled}
182 <table summary="{t}Spam filter configuration{/t}">
183 <tr>
184 <td>{t}from{/t}</td>
185 <td style='width:140px'>
186 {render acl=$gosaVacationMessageACL}
187 <input type="text" id="gosaVacationStart" name="gosaVacationStart" class="date" style='width:100px' value="{$gosaVacationStart}">
188 {if $gosaVacationMessageACL|regex_replace:"/[cdmr]/":"" == "w"}
189 <script type="text/javascript">
190 {literal}
191 var datepicker = new DatePicker({ relative : 'gosaVacationStart', language : '{/literal}{$lang}{literal}', keepFieldEmpty : true, enableCloseEffect : false, enableShowEffect : false });
192 {/literal}
193 </script>
194 {/if}
195 {/render}
196 </td>
197 <td>{t}till{/t}</td>
198 <td style='width:140px'>
199 {render acl=$gosaVacationMessageACL}
200 <div id="vacstart"><input type="text" id="gosaVacationStop" name="gosaVacationStop" class="date" style='width:100px' value="{$gosaVacationStop}"></div>
201 {if $gosaVacationMessageACL|regex_replace:"/[cdmr]/":"" == "w"}
202 <script type="text/javascript">
203 {literal}
204 var datepicker2 = new DatePicker({ relative : 'gosaVacationStop', language : '{/literal}{$lang}{literal}', keepFieldEmpty : true, enableCloseEffect : false, enableShowEffect : false });
205 {/literal}
206 </script>
207 {/if}
208 {/render}
209 </td>
210 </tr>
211 </table>
212 {/if}
213 <td class='left-border' rowspan="2">
214 </td>
215 <td>
218 <div>
219 <div style='float:left'>
220 {render acl=$gosaMailDeliveryModeSACL checkbox=$multiple_support checked=$use_use_spam_filter}
221 <input {if $own_script != ""} disabled {/if} id='use_spam_filter' type=checkbox name="use_spam_filter"
222 value="1" {$use_spam_filter} title="{t}Select if you want to filter this mails through spamassassin{/t}" class="center">
223 {/render}
224 </div>
225 <div style='padding-left: 25px;'>
226 <label for="gosaSpamSortLevel">{t}Move mails tagged with spam level greater than{/t}</label>
227 {render acl=$gosaSpamSortLevelACL checkbox=$multiple_support checked=$use_gosaSpamSortLevel}
228 <select {if $own_script != ""} disabled {/if} id="gosaSpamSortLevel" size="1" name="gosaSpamSortLevel"
229 title="{t}Choose spam level - smaller values are more sensitive{/t}">
230 {html_options values=$spamlevel output=$spamlevel selected=$gosaSpamSortLevel}
231 </select>
232 {/render}
233 <label for="gosaSpamMailbox">{t}to folder{/t}</label>
234 {render acl=$gosaSpamMailboxACL checkbox=$multiple_support checked=$use_gosaSpamMailbox}
235 <select {if $own_script != ""} disabled {/if} size="1" id="gosaSpamMailbox" name="gosaSpamMailbox">
236 {html_options values=$spambox output=$spambox selected=$gosaSpamMailbox}
237 <option disabled> </option>
238 </select>
239 {/render}
240 </div>
241 </div>
243 <div class='clear'></div>
245 <div>
246 <div style='float:left;'>
247 {render acl=$gosaMailDeliveryModeRACL checkbox=$multiple_support checked=$use_use_mailsize_limit}
248 <input {if $own_script != ""} disabled {/if} id='use_mailsize_limit' type=checkbox
249 name="use_mailsize_limit" value="1" {$use_mailsize_limit} class="center">
250 {/render}
251 </div>
252 <div style='padding-left: 25px;'>
253 <label for="gosaMailMaxSize">{t}Reject mails bigger than{/t}</label>
254 {render acl=$gosaMailMaxSizeACL checkbox=$multiple_support checked=$use_gosaMailMaxSize}
255 <input {if $own_script != ""} disabled {/if} id="gosaMailMaxSize" name="gosaMailMaxSize"
256 size="6" align="middle" maxlength="30" value="{$gosaMailMaxSize}" class="center"> {t}MB{/t}
257 {/render}
258 </div>
259 </div>
261 <div class='clear'></div>
263 </td>
264 </tr>
265 <tr>
266 <td style='width:45%'>
268 <p style="margin-bottom:0px;">
269 <b><label for="gosaVacationMessage">{t}Vacation message{/t}</label></b>
270 </p>
271 {render acl=$gosaVacationMessageACL checkbox=$multiple_support checked=$use_gosaVacationMessage}
272 <textarea {if $own_script != ""} disabled {/if} id="gosaVacationMessage" style="width:99%; height:100px;"
273 name="gosaVacationMessage" rows="4" cols="512">{$gosaVacationMessage}</textarea>
274 {/render}
275 <br>
277 {if $show_templates eq "true"}
278 {render acl=$gosaVacationMessageACL}
279 <select id='vacation_template' name="vacation_template" {if $own_script != ""} disabled {/if} size=1>
280 {html_options options=$vacationtemplates selected=$template}
281 <option disabled> </option>
282 </select>
283 {/render}
284 {render acl=$gosaVacationMessageACL}
285 <button type='submit' name='import_vacation' id="import_vacation" {if $own_script != ""} disabled {/if}
286 >{t}Import{/t}</button>
288 {/render}
289 {/if}
290 </td>
291 <td>
292 <p style="margin-bottom:0px;">
293 <b><label for="forwarder_list">{t}Forward messages to{/t}</label></b>
294 </p>
296 {if $multiple_support}
297 <input type="checkbox" name="use_gosaMailForwardingAddress" onclick="changeState('gosaMailForwardingAddress');"
298 class="center" {if $use_gosaMailForwardingAddress} checked {/if}>
299 {/if}
301 {render acl=$gosaMailForwardingAddressACL}
302 <select {if $use_gosaMailForwardingAddress} checked {/if}
303 id="gosaMailForwardingAddress" style="width:100%; height:100px;" name="forwarder_list[]" size=15 multiple>
304 {html_options values=$gosaMailForwardingAddress output=$gosaMailForwardingAddress selected=$template}
305 <option disabled> </option>
306 </select>
307 {/render}
308 <br>
309 {render acl=$gosaMailForwardingAddressACL}
310 <input type='text' id='forward_address' name="forward_address" size=20 align="middle" maxlength=65 value="">
311 {/render}
312 {render acl=$gosaMailForwardingAddressACL}
313 <button type='submit' name='add_forwarder' id="add_forwarder">{msgPool type=addButton}</button>
315 {/render}
316 {render acl=$gosaMailForwardingAddressACL}
317 <button type='submit' name='add_local_forwarder' id="add_local_forwarder">{t}Add local{/t}</button>
319 {/render}
320 {render acl=$gosaMailForwardingAddressACL}
321 <button type='submit' name='delete_forwarder' id="delete_forwarder">{msgPool type=delButton}</button>
323 {/render}
324 </td>
325 </tr>
326 </table>
327 <hr>
329 <h3>{t}Advanced mail options{/t}
330 </h3>
331 <table summary="{t}Delivery settings{/t}">
332 <tr>
333 <td>
334 {render acl=$gosaMailDeliveryModeLACL checkbox=$multiple_support checked=$use_only_local}
335 <input {if $own_script != ""} disabled {/if} id='only_local' type=checkbox name="only_local"
336 value="1" {$only_local} title="{t}Select if user can only send and receive inside his own domain{/t}" class="center">
337 {/render}
338 {t}User is only allowed to send and receive local mails{/t}
339 </td>
340 </tr>
341 </table>
343 <input type="hidden" name="mailTab" value="mailTab">
345 <!-- Place cursor -->
346 <script language="JavaScript" type="text/javascript">
348 {literal}
349 function validateClick()
350 {
351 alert("yes");
352 if(!document.getElementById('use_vacation').checked){
353 return;
354 }
355 }
357 function changeStates()
358 {
359 if($('own_script').checked) {
360 $("gosaVacationStart", "gosaVacationStop","gosaVacationMessage").invoke("disable");
361 $("datepicker-gosaVacationStop_image", "datepicker-gosaVacationStart_image").invoke("hide");
362 } else {
363 if($('use_vacation').checked) {
364 $("gosaVacationStart", "gosaVacationStop","gosaVacationMessage").invoke("enable");
365 $("datepicker-gosaVacationStop_image", "datepicker-gosaVacationStart_image").invoke("show");
366 }else{
367 $("gosaVacationStart", "gosaVacationStop","gosaVacationMessage").invoke("disable");
368 $("datepicker-gosaVacationStop_image", "datepicker-gosaVacationStart_image").invoke("hide");
369 }
370 }
371 }
373 changeStates();
374 focus_field('mail');
375 {/literal}
376 </script>