[% SET full_listname = RAW_FORM('email'); SET listdomain = full_listname.split('@').1; #NOTE: Should this ever not be SSL? SET webmailurl = "http://mail.$listdomain/webmail"; SET safewebmailurl = webmailurl.html; SET delegates = execute('Email','get_mailman_delegates', { 'list' => (full_listname) }); SET delegated_users = delegates.data.delegates.join(','); IF delegates.status; SET delegate_map = array_to_hash(delegates.data.delegates); END; SET all_email_users = execute('Email','list_pops'); IF all_email_users.status; SET email_users = array_to_hash(all_email_users.data,'email'); email_users.delete( CPANEL.user ); END; SET sorted_email_users = email_users.keys.sort(); SET CPANEL.CPVAR.dprefix = '../'; SET add_arrow = locale.is_rtl() ? '←' : '→'; SET remove_arrow = locale.is_rtl() ? '→' : '←'; SET securityurl = "https://go.cpanel.net/mailmandelegation"; SET safesecurityurl = securityurl.html; %] [% js_code = PROCESS js_block %] [% WRAPPER '_assets/master.html.tt' app_key = 'mailing_lists' page_js_top = js_code embed_scripts = ['js2/mail/delegatelist.js'] embed_stylesheets = ['css2/mail/delegatelist.css'] -%] [% PROCESS _assets/_ajaxapp_header.html.tt -%]

[% locale.maketext('Administrator Privileges Delegation') %]

[% locale.maketext("Grant email users administrative access to the mailing list “[_1]”", full_listname.html()) %]

Warning: [% locale.maketext('Do not delegate mailing list administration to virtual accounts that you do not trust. Delegation will give this virtual user a means by which they could take over the cPanel account. Please use this functionality with care. See [output,url,_1] for more information.', safesecurityurl) %]
[% IF email_users.size -%] [% INCLUDE infoText %] [% INCLUDE selectWrapper %] [% ELSE %] [% INCLUDE noUsersWarning %] [% END %] [% INCLUDE _assets/return_link.html.tt return_location='lists.html#listlists' return_link_text=locale.maketext('Go Back') %]
[% PROCESS _assets/_ajaxapp_footer.html.tt -%] [% END #wrapper %] [% BLOCK js_block %] [% END %] [% BLOCK infoText %]

[% locale.maketext('You can delegate administrative privileges for the mailing list to the users you choose below.') %] [% locale.maketext('Once you have delegated administrative privileges to an email user for a list, the user can login to the list’s administrative console from webmail ([output,url,_1]).', safewebmailurl) %]

[% END %] [% BLOCK selectWrapper %]
[% END %] [% BLOCK noUsersWarning %]

[% locale.maketext('You have not set up any email accounts.') %]

[% locale.maketext('You must first create an email account for each user whom you wish to have administrative access.') %]

[% END %]