From: Silvio Rhatto Date: Wed, 27 Jun 2012 03:09:04 +0000 (-0300) Subject: Adding roundcube_login_info parameter X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d8ad03d2d3924ec47530ff0e8b2799bfe8b53b91;p=puppet-mail.git Adding roundcube_login_info parameter --- diff --git a/manifests/web.pp b/manifests/web.pp index 27d5798..9c86846 100644 --- a/manifests/web.pp +++ b/manifests/web.pp @@ -8,6 +8,10 @@ class mail::web::virtual inherits websites::setup { case $roundcube_logo { '': { $roundcube_logo = 'null' } } + + case $roundcube_login_info { + '': { $roundcube_login_info = false } + } } include php::imap diff --git a/templates/roundcube/main.inc.php.erb b/templates/roundcube/main.inc.php.erb index aa449d9..5582ce0 100644 --- a/templates/roundcube/main.inc.php.erb +++ b/templates/roundcube/main.inc.php.erb @@ -358,7 +358,7 @@ $rcmail_config['email_dns_check'] = false; // ---------------------------------- // List of active plugins (in plugins/ directory) -$rcmail_config['plugins'] = array(); +$rcmail_config['plugins'] = array('login_info'); // ---------------------------------- // USER INTERFACE @@ -483,6 +483,15 @@ $rcmail_config['upload_progress'] = false; // Setting it to 0, disables the feature. $rcmail_config['undo_timeout'] = 0; +<% if roundcube_login_info != false %> +// Login_info plugin +$rcmail_config['login_info'] = << + <%= roundcube_login_info %> + +EOT; +<% end -%> + // ---------------------------------- // ADDRESSBOOK SETTINGS // ----------------------------------