diff options
author | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-05-03 13:23:58 +0100 |
---|---|---|
committer | Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com> | 2012-05-03 13:23:58 +0100 |
commit | 4a5c8e92a390dba483a9ff58d6b7a3005014f0b6 (patch) | |
tree | 19235f6c80fc9bb1837ac226b5a5882dc819f4a3 | |
parent | 6764a33c367188f5aa0eb5e9a682797e8cc7b149 (diff) | |
download | pykolab-4a5c8e92a390dba483a9ff58d6b7a3005014f0b6.tar.gz |
Add Roundcube templates
-rw-r--r-- | share/Makefile.am | 18 | ||||
-rw-r--r-- | share/templates/roundcubemail/acl.inc.php.tpl | 8 | ||||
-rw-r--r-- | share/templates/roundcubemail/calendar.inc.php.tpl | 10 | ||||
-rw-r--r-- | share/templates/roundcubemail/compose_addressbook.inc.php.tpl | 4 | ||||
-rw-r--r-- | share/templates/roundcubemail/db.inc.php.tpl | 25 | ||||
-rw-r--r-- | share/templates/roundcubemail/kolab.inc.php.tpl | 17 | ||||
-rw-r--r-- | share/templates/roundcubemail/kolab_auth.inc.php.tpl | 66 | ||||
-rw-r--r-- | share/templates/roundcubemail/kolab_folders.inc.php.tpl | 14 | ||||
-rw-r--r-- | share/templates/roundcubemail/main.inc.php.tpl | 269 | ||||
-rw-r--r-- | share/templates/roundcubemail/managesieve.inc.php.tpl | 13 | ||||
-rw-r--r-- | share/templates/roundcubemail/mimetypes.php.tpl | 49 | ||||
-rw-r--r-- | share/templates/roundcubemail/owncloud.inc.php.tpl | 4 | ||||
-rw-r--r-- | share/templates/roundcubemail/password.inc.php.tpl | 151 | ||||
-rw-r--r-- | share/templates/roundcubemail/recipient_to_contact.inc.php.tpl | 4 | ||||
-rw-r--r-- | share/templates/roundcubemail/terms.html.tpl | 10 | ||||
-rw-r--r-- | share/templates/roundcubemail/terms.inc.php.tpl | 18 |
16 files changed, 680 insertions, 0 deletions
diff --git a/share/Makefile.am b/share/Makefile.am new file mode 100644 index 0000000..047b5c2 --- /dev/null +++ b/share/Makefile.am @@ -0,0 +1,18 @@ +templatedir = $(datadir)/kolab/templates + +template_DATA = \ + $(wildcard templates/*.tpl) + +rctemplatedir = $(datadir)/kolab/templates/roundcubemail +rctemplate_DATA = \ + $(wildcard templates/roundcubemail/*.tpl) + +EXTRA_DIST = \ + $(template_DATA) \ + $(rctemplate_DATA) + +install-exec-local: + mkdir -p \ + $(DESTDIR)/$(sysconfdir)/kolab/templates \ + $(DESTDIR)/$(sysconfdir)/kolab/templates/roundcubemail + diff --git a/share/templates/roundcubemail/acl.inc.php.tpl b/share/templates/roundcubemail/acl.inc.php.tpl new file mode 100644 index 0000000..e056660 --- /dev/null +++ b/share/templates/roundcubemail/acl.inc.php.tpl @@ -0,0 +1,8 @@ +<?php + \$rcmail_config['acl_advanced_mode'] = false; + \$rcmail_config['acl_users_source'] = 'Kolab'; + \$rcmail_config['acl_users_field'] = 'mail'; + \$rcmail_config['acl_users_filter'] = 'objectClass=kolabInetOrgPerson'; + + \$rcmail_config['acl_users_source'] = 'kolab_ldap'; +?> diff --git a/share/templates/roundcubemail/calendar.inc.php.tpl b/share/templates/roundcubemail/calendar.inc.php.tpl new file mode 100644 index 0000000..bc871ce --- /dev/null +++ b/share/templates/roundcubemail/calendar.inc.php.tpl @@ -0,0 +1,10 @@ +<?php + \$rcmail_config['calendar_driver'] = "kolab"; + \$rcmail_config['calendar_default_view'] = "agendaWeek"; + \$rcmail_config['calendar_timeslots'] = 2; + \$rcmail_config['calendar_first_day'] = 1; + \$rcmail_config['calendar_first_hour'] = 6; + \$rcmail_config['calendar_work_start'] = 6; + \$rcmail_config['calendar_work_end'] = 18; + \$rcmail_config['calendar_event_coloring'] = 0; +?> diff --git a/share/templates/roundcubemail/compose_addressbook.inc.php.tpl b/share/templates/roundcubemail/compose_addressbook.inc.php.tpl new file mode 100644 index 0000000..31702ac --- /dev/null +++ b/share/templates/roundcubemail/compose_addressbook.inc.php.tpl @@ -0,0 +1,4 @@ +<?php + \$rcmail_config['compose_addressbooks'] = \$rcmail_config['autocomplete_addressbooks']; + \$rcmail_config['compose_addressbook_mode'] = 'full'; +?> diff --git a/share/templates/roundcubemail/db.inc.php.tpl b/share/templates/roundcubemail/db.inc.php.tpl new file mode 100644 index 0000000..8b8db48 --- /dev/null +++ b/share/templates/roundcubemail/db.inc.php.tpl @@ -0,0 +1,25 @@ +<?php + + \$rcmail_config = array(); + + \$rcmail_config['db_dsnw'] = '$mysql_uri'; + + \$rcmail_config['db_max_length'] = 512000; + \$rcmail_config['db_persistent'] = TRUE; + \$rcmail_config['db_table_users'] = 'users'; + \$rcmail_config['db_table_identities'] = 'identities'; + \$rcmail_config['db_table_contacts'] = 'contacts'; + \$rcmail_config['db_table_contactgroups'] = 'contactgroups'; + \$rcmail_config['db_table_contactgroupmembers'] = 'contactgroupmembers'; + \$rcmail_config['db_table_session'] = 'session'; + \$rcmail_config['db_table_cache'] = 'cache'; + \$rcmail_config['db_table_messages'] = 'messages'; + \$rcmail_config['db_sequence_users'] = 'user_ids'; + \$rcmail_config['db_sequence_identities'] = 'identity_ids'; + \$rcmail_config['db_sequence_contacts'] = 'contact_ids'; + \$rcmail_config['db_sequence_contactgroups'] = 'contactgroups_ids'; + \$rcmail_config['db_sequence_cache'] = 'cache_ids'; + \$rcmail_config['db_sequence_messages'] = 'message_ids'; + + +?> diff --git a/share/templates/roundcubemail/kolab.inc.php.tpl b/share/templates/roundcubemail/kolab.inc.php.tpl new file mode 100644 index 0000000..c7f81a6 --- /dev/null +++ b/share/templates/roundcubemail/kolab.inc.php.tpl @@ -0,0 +1,17 @@ +<?php +// Configuration for Kolab LDAP binding used by Kolab_Storage +\$rcmail_config['kolab']['ldap']['server'] = '$ldap_ldap_uri'; +\$rcmail_config['kolab']['ldap']['basedn'] = '$ldap_base_dn'; +\$rcmail_config['kolab']['ldap']['phpdn'] = '$ldap_service_bind_dn'; +\$rcmail_config['kolab']['ldap']['phppw'] = '$ldap_service_bind_pw'; + +\$rcmail_config['kolab']['freebusy']['server'] = 'https://' . \$_SERVER["HTTP_HOST"] . '/freebusy'; + +\$rcmail_config['kolab']['imap']['secure'] = true; +\$rcmail_config['kolab']['imap']['namespaces'] = array( + array('type' => 'personal', 'name' => '', 'delimiter' => '/'), + array('type' => 'other', 'name' => 'Other Users', 'delimiter' => '/'), + array('type' => 'shared', 'name' => 'Shared Folders', 'delimiter' => '/'), +); + +?> diff --git a/share/templates/roundcubemail/kolab_auth.inc.php.tpl b/share/templates/roundcubemail/kolab_auth.inc.php.tpl new file mode 100644 index 0000000..41e0bc8 --- /dev/null +++ b/share/templates/roundcubemail/kolab_auth.inc.php.tpl @@ -0,0 +1,66 @@ +<?php + +// The id of the LDAP address book (which refers to the rcmail_config['ldap_public']) +// or complete addressbook definition array. +\$rcmail_config['kolab_auth_addressbook'] = Array( + 'name' => 'Kolab Auth', + 'hosts' => Array('localhost'), + 'port' => 389, + 'use_tls' => false, + 'user_specific' => false, + 'base_dn' => '$ldap_user_base_dn', + 'bind_dn' => '$ldap_service_bind_dn', + 'bind_pass' => '$ldap_service_bind_pw', + 'writable' => false, + 'ldap_version' => 3, // using LDAPv3 + 'fieldmap' => Array( + 'name' => 'displayname', + 'email' => 'mail', + 'email:alias' => 'alias', + 'role' => 'nsroledn', + ), + 'sort' => 'displayname', + 'scope' => 'sub', + 'filter' => '(objectClass=*)', + 'fuzzy_search' => true, + 'sizelimit' => '0', + 'timelimit' => '0', + 'groups' => Array( + 'base_dn' => '$ldap_group_base_dn', + 'filter' => '$ldap_group_filter', + 'object_classes' => Array('top', 'groupOfUniqueNames'), + 'member_attr' => 'uniqueMember', + ), +); + + +// This will overwrite defined filter +\$rcmail_config['kolab_auth_filter'] = '(&' . '$ldap_user_filter' . '(|(uid=%u)(mail=%fu)(alias=%fu)))'; + +// Use this fields (from fieldmap configuration) to get authentication ID +\$rcmail_config['kolab_auth_login'] = 'email'; + +// Use this fields (from fieldmap configuration) for default identity +\$rcmail_config['kolab_auth_name'] = 'name'; +\$rcmail_config['kolab_auth_alias'] = 'alias'; +\$rcmail_config['kolab_auth_email'] = 'email'; + +if (preg_match('/\/helpdesk-login\//', \$_SERVER["REQUEST_URI"]) ) { + + // Login and password of the admin user. Enables "Login As" feature. + \$rcmail_config['kolab_auth_admin_login'] = '$imap_admin_login'; + \$rcmail_config['kolab_auth_admin_password'] = '$imap_admin_password'; + + \$rcmail_config['kolab_auth_auditlog'] = true; +} + +// Administrative role field (from fieldmap configuration) which must be filled with +// specified value which adds privilege to login as another user. +\$rcmail_config['kolab_auth_role'] = 'role'; +\$rcmail_config['kolab_auth_role_value'] = 'cn=kolab-admin,$ldap_base_dn'; + +// Administrative group name to which user must be assigned to +// which adds privilege to login as another user. +\$rcmail_config['kolab_auth_group'] = 'Kolab Helpdesk'; + +?> diff --git a/share/templates/roundcubemail/kolab_folders.inc.php.tpl b/share/templates/roundcubemail/kolab_folders.inc.php.tpl new file mode 100644 index 0000000..b0c7ea1 --- /dev/null +++ b/share/templates/roundcubemail/kolab_folders.inc.php.tpl @@ -0,0 +1,14 @@ +<?php + \$rcmail_config['kolab_folders_configuration_default'] = 'Configuration'; + \$rcmail_config['kolab_folders_event_default'] = 'Calendar'; + \$rcmail_config['kolab_folders_contact_default'] = 'Contacts'; + \$rcmail_config['kolab_folders_task_default'] = ''; + \$rcmail_config['kolab_folders_note_default'] = ''; + \$rcmail_config['kolab_folders_journal_default'] = ''; + \$rcmail_config['kolab_folders_mail_inbox'] = 'INBOX'; + \$rcmail_config['kolab_folders_mail_drafts'] = 'Drafts'; + \$rcmail_config['kolab_folders_mail_sentitems'] = 'Sent'; + \$rcmail_config['kolab_folders_mail_junkemail'] = 'Trash'; + \$rcmail_config['kolab_folders_mail_outbox'] = ''; + \$rcmail_config['kolab_folders_mail_wastebasket'] = ''; +?> diff --git a/share/templates/roundcubemail/main.inc.php.tpl b/share/templates/roundcubemail/main.inc.php.tpl new file mode 100644 index 0000000..030e239 --- /dev/null +++ b/share/templates/roundcubemail/main.inc.php.tpl @@ -0,0 +1,269 @@ +<?php + \$rcmail_config = array(); + + \$rcmail_config['imap_cache'] = 'db'; + \$rcmail_config['messages_cache'] = 'db'; + \$rcmail_config['force_https'] = false; + \$rcmail_config['use_https'] = false; + \$rcmail_config['login_autocomplete'] = 0; + \$rcmail_config['session_lifetime'] = 180; + \$rcmail_config['ip_check'] = false; + \$rcmail_config['referer_check'] = false; + \$rcmail_config['password_charset'] = 'ISO-8859-1'; + \$rcmail_config['sendmail_delay'] = 0; + \$rcmail_config['max_recipients'] = 0; + \$rcmail_config['max_group_members'] = 0; + \$rcmail_config['useragent'] = 'Roundcube Webmail/'.RCMAIL_VERSION; + \$rcmail_config['include_host_config'] = false; + \$rcmail_config['generic_message_footer'] = ''; + \$rcmail_config['generic_message_footer_html'] = ''; + \$rcmail_config['http_received_header'] = true; + \$rcmail_config['http_received_header_encrypt'] = true; + \$rcmail_config['mail_header_delimiter'] = NULL; + \$rcmail_config['line_length'] = 72; + \$rcmail_config['send_format_flowed'] = true; + \$rcmail_config['dont_override'] = Array(); + \$rcmail_config['identities_level'] = 0; + \$rcmail_config['contact_photo_size'] = 160; + \$rcmail_config['email_dns_check'] = false; + + \$rcmail_config['message_sort_col'] = ''; + \$rcmail_config['message_sort_order'] = 'DESC'; + \$rcmail_config['list_cols'] = array('subject', 'status', 'from', 'date', 'size', 'flag', 'attachment'); + \$rcmail_config['language'] = null; + \$rcmail_config['date_short'] = 'D H:i'; + \$rcmail_config['date_long'] = 'd.m.Y H:i'; + \$rcmail_config['date_today'] = 'H:i'; + \$rcmail_config['date_format'] = 'Y-m-d'; + \$rcmail_config['quota_zero_as_unlimited'] = false; + \$rcmail_config['enable_spellcheck'] = true; + \$rcmail_config['spellcheck_dictionary'] = true; + \$rcmail_config['spellcheck_engine'] = 'googie'; + \$rcmail_config['spellcheck_uri'] = ''; + \$rcmail_config['spellcheck_languages'] = NULL; + \$rcmail_config['spellcheck_ignore_caps'] = true; + \$rcmail_config['spellcheck_ignore_nums'] = true; + \$rcmail_config['spellcheck_ignore_syms'] = true; + \$rcmail_config['max_pagesize'] = 200; + \$rcmail_config['min_keep_alive'] = 60; + \$rcmail_config['undo_timeout'] = 10; + \$rcmail_config['upload_progress'] = 2; + \$rcmail_config['address_book_type'] = 'ldap'; + \$rcmail_config['autocomplete_min_length'] = 3; + \$rcmail_config['autocomplete_threads'] = 0; + \$rcmail_config['autocomplete_max'] = 15; + \$rcmail_config['address_template'] = '{street}<br/>{locality} {zipcode}<br/>{country} {region}'; + \$rcmail_config['default_charset'] = 'ISO-8859-1'; + \$rcmail_config['pagesize'] = 40; + \$rcmail_config['timezone'] = 'auto'; + \$rcmail_config['dst_active'] = (bool)date('I'); + \$rcmail_config['prefer_html'] = true; + \$rcmail_config['show_images'] = 0; + \$rcmail_config['prettydate'] = true; + \$rcmail_config['draft_autosave'] = 300; + \$rcmail_config['preview_pane'] = true; + \$rcmail_config['preview_pane_mark_read'] = 0; + \$rcmail_config['logout_purge'] = false; + \$rcmail_config['logout_expunge'] = false; + \$rcmail_config['inline_images'] = true; + \$rcmail_config['mime_param_folding'] = 1; + \$rcmail_config['skip_deleted'] = true; + \$rcmail_config['read_when_deleted'] = true; + \$rcmail_config['flag_for_deletion'] = true; + \$rcmail_config['keep_alive'] = 300; + \$rcmail_config['check_all_folders'] = false; + \$rcmail_config['display_next'] = true; + \$rcmail_config['autoexpand_threads'] = 2; + \$rcmail_config['top_posting'] = false; + \$rcmail_config['strip_existing_sig'] = true; + \$rcmail_config['show_sig'] = 1; + \$rcmail_config['sig_above'] = false; + \$rcmail_config['force_7bit'] = false; + \$rcmail_config['search_mods'] = null; + \$rcmail_config['delete_always'] = true; + \$rcmail_config['mdn_requests'] = 0; + \$rcmail_config['mdn_default'] = false; + \$rcmail_config['dsn_default'] = false; + \$rcmail_config['reply_same_folder'] = false; + + \$rcmail_config['plugins'] = array( + 'acl', + 'archive', + 'calendar', + 'compose_addressbook', + 'http_authentication', + 'jqueryui', + 'kolab_addressbook', + 'kolab_auth', + 'kolab_core', + 'kolab_config', + 'kolab_folders', + 'kolab_zpush', + 'listcommands', + 'managesieve', + 'newmail_notifier', +// 'owncloud', + 'password', + + // Depends on sieverules + // 'quickrules', + + 'redundant_attachments', + 'terms', + 'threading_as_default', + // contextmenu must be after kolab_addressbook (#444) + 'contextmenu', + ); + + + if (file_exists(RCMAIL_CONFIG_DIR . '/' . \$_SERVER["HTTP_HOST"] . '/main.inc.php')) { + include_once(RCMAIL_CONFIG_DIR . '/' . \$_SERVER["HTTP_HOST"] . '/main.inc.php'); + } + + // Re-apply mandatory settings here. + + \$rcmail_config['debug_level'] = 0; + \$rcmail_config['devel_mode'] = false; + \$rcmail_config['log_driver'] = 'file'; + \$rcmail_config['log_date_format'] = 'd-M-Y H:i:s,u O'; + \$rcmail_config['syslog_id'] = 'roundcube'; + \$rcmail_config['syslog_facility'] = LOG_USER; + \$rcmail_config['smtp_log'] = true; + \$rcmail_config['log_logins'] = true; + \$rcmail_config['log_session'] = true; + \$rcmail_config['sql_debug'] = true; + \$rcmail_config['memcache_debug'] = true; + \$rcmail_config['imap_debug'] = true; + \$rcmail_config['ldap_debug'] = true; + \$rcmail_config['smtp_debug'] = true; + + \$rcmail_config['product_name'] = 'Kolab Groupware'; + + \$rcmail_config['skin'] = 'kolab'; + \$rcmail_config['skin_logo'] = 'skins/kolab/images/kolab_logo.png'; + \$rcmail_config['skin_include_php'] = false; + \$rcmail_config['mime_magic'] = '/usr/share/misc/magic'; + \$rcmail_config['im_identify_path'] = '/usr/bin/identify'; + \$rcmail_config['im_convert_path'] = '/usr/bin/convert'; + \$rcmail_config['login_lc'] = true; + \$rcmail_config['auto_create_user'] = true; + \$rcmail_config['enable_installer'] = false; + \$rcmail_config['session_storage'] = 'db'; + \$rcmail_config['default_port'] = 143; + \$rcmail_config['imap_auth_type'] = ''; + \$rcmail_config['imap_delimiter'] = '/'; + \$rcmail_config['imap_ns_personal'] = null; + \$rcmail_config['imap_ns_other'] = null; + \$rcmail_config['imap_ns_shared'] = null; + \$rcmail_config['imap_force_caps'] = false; + \$rcmail_config['imap_force_lsub'] = true; + \$rcmail_config['imap_timeout'] = 0; + \$rcmail_config['imap_auth_cid'] = null; + \$rcmail_config['imap_auth_pw'] = null; + \$rcmail_config['smtp_port'] = 587; + \$rcmail_config['smtp_user'] = '%u'; + \$rcmail_config['smtp_pass'] = '%p'; + \$rcmail_config['smtp_auth_type'] = ''; + \$rcmail_config['smtp_auth_cid'] = null; + \$rcmail_config['smtp_auth_pw'] = null; + \$rcmail_config['smtp_helo_host'] = \$_SERVER["HTTP_HOST"]; + \$rcmail_config['smtp_timeout'] = 0; + \$rcmail_config['log_dir'] = '/var/log/roundcubemail/'; + \$rcmail_config['temp_dir'] = '\${_tmppath}'; + \$rcmail_config['message_cache_lifetime'] = '10d'; + + \$rcmail_config['archive_mbox'] = 'Archive'; + \$rcmail_config['drafts_mbox'] = 'Drafts'; + \$rcmail_config['junk_mbox'] = 'Spam'; + \$rcmail_config['sent_mbox'] = 'Sent'; + \$rcmail_config['trash_mbox'] = 'Trash'; + \$rcmail_config['default_imap_folders'] = array('INBOX', 'Drafts', 'Sent', 'Spam', 'Trash'); + \$rcmail_config['create_default_folders'] = true; + \$rcmail_config['protect_default_folders'] = true; + + \$mandatory_plugins = Array( + 'calendar', + 'kolab_addressbook', + 'kolab_auth', + 'kolab_core', + 'kolab_config', + 'kolab_folders', + 'password', + 'terms' + ); + + foreach ( \$mandatory_plugins as \$num => \$plugin ) { + if (!in_array(\$plugin, \$rcmail_config['plugins'])) { + \$rcmail_config['plugins'][] = \$plugin; + } + } + + \$rcmail_config['default_host'] = 'tls://localhost'; + \$rcmail_config['smtp_server'] = 'tls://localhost'; + \$rcmail_config['session_domain'] = ''; + \$rcmail_config['des_key'] = 'aTMVSq6lNHg1YbcV6t59uGeZ'; + \$rcmail_config['username_domain'] = ''; + + \$rcmail_config['mail_domain'] = ''; + + \$rcmail_config['ldap_public'] = array( + 'kolab_addressbook' => array( + 'name' => 'Global Address Book', + 'hosts' => Array('localhost'), + 'port' => 389, + 'use_tls' => false, + 'base_dn' => '$ldap_user_base_dn', + 'user_specific' => true, + 'bind_dn' => '%dn', + 'bind_pass' => '', + 'search_base_dn' => '$ldap_user_base_dn', + 'search_bind_dn' => '$ldap_service_bind_dn', + 'search_bind_pw' => '$ldap_service_bind_pw', + 'search_filter' => '(&(objectClass=inetOrgPerson)(mail=%fu))', + 'writable' => false, + 'LDAP_Object_Classes' => array("top", "inetOrgPerson"), + 'required_fields' => array("cn", "sn", "mail"), + 'LDAP_rdn' => 'uid', + 'ldap_version' => 3, // using LDAPv3 + 'search_fields' => array('displayname', 'mail'), + 'sort' => array('displayname', 'sn', 'givenname', 'cn'), + 'scope' => 'sub', + 'filter' => '(objectClass=inetOrgPerson)', + 'vlv' => false, + 'fuzzy_search' => true, + 'sizelimit' => '0', + 'timelimit' => '0', + 'fieldmap' => Array( + // Roundcube => LDAP + 'name' => 'displayName', + 'surname' => 'sn', + 'firstname' => 'givenName', + 'middlename' => 'initials', + 'prefix' => 'title', + 'email:primary' => 'mail', + 'email:alias' => 'alias', + 'phone:main' => 'telephoneNumber', + 'phone:work' => 'alternateTelephoneNumber', + 'phone:mobile' => 'mobile', + 'phone:work2' => 'blackberry', + 'jobtitle' => 'title', + 'manager' => 'manager', + 'assistant' => 'secretary', + 'photo' => 'jpegphoto' + ), + 'groups' => Array( + 'base_dn' => '$ldap_group_base_dn', + 'filter' => '(&' . '$ldap_group_filter' . '(mail=*))', + 'object_classes' => Array("top", "groupOfUniqueNames"), + 'member_attr' => 'uniqueMember', + ), + ), + ); + + \$rcmail_config['autocomplete_addressbooks'] = Array( + 'kolab_addressbook' + ); + + \$rcmail_config['htmleditor'] = 0; + +?> diff --git a/share/templates/roundcubemail/managesieve.inc.php.tpl b/share/templates/roundcubemail/managesieve.inc.php.tpl new file mode 100644 index 0000000..c1a9fa3 --- /dev/null +++ b/share/templates/roundcubemail/managesieve.inc.php.tpl @@ -0,0 +1,13 @@ +<?php + \$rcmail_config['managesieve_port'] = 4190; + \$rcmail_config['managesieve_host'] = '%h'; + \$rcmail_config['managesieve_auth_type'] = 'PLAIN'; + \$rcmail_config['managesieve_auth_cid'] = null; + \$rcmail_config['managesieve_auth_pw'] = null; + \$rcmail_config['managesieve_usetls'] = true; + \$rcmail_config['managesieve_default'] = '/etc/dovecot/sieve/global'; + \$rcmail_config['managesieve_mbox_encoding'] = 'UTF-8'; + \$rcmail_config['managesieve_replace_delimiter'] = ''; + \$rcmail_config['managesieve_disabled_extensions'] = array(); + \$rcmail_config['managesieve_debug'] = true; +?> diff --git a/share/templates/roundcubemail/mimetypes.php.tpl b/share/templates/roundcubemail/mimetypes.php.tpl new file mode 100644 index 0000000..d404c1f --- /dev/null +++ b/share/templates/roundcubemail/mimetypes.php.tpl @@ -0,0 +1,49 @@ +<?php + +return array( + 'xls' => 'application/vnd.ms-excel', + 'xlm' => 'application/vnd.ms-excel', + 'xla' => 'application/vnd.ms-excel', + 'xlc' => 'application/vnd.ms-excel', + 'xlt' => 'application/vnd.ms-excel', + 'xlw' => 'application/vnd.ms-excel', + 'pdf' => 'application/pdf', + 'ppt' => 'application/vnd.ms-powerpoint', + 'pps' => 'application/vnd.ms-powerpoint', + 'pot' => 'application/vnd.ms-powerpoint', + 'doc' => 'application/msword', + 'dot' => 'application/msword', + 'odc' => 'application/vnd.oasis.opendocument.chart', + 'otc' => 'application/vnd.oasis.opendocument.chart-template', + 'odf' => 'application/vnd.oasis.opendocument.formula', + 'otf' => 'application/vnd.oasis.opendocument.formula-template', + 'odg' => 'application/vnd.oasis.opendocument.graphics', + 'otg' => 'application/vnd.oasis.opendocument.graphics-template', + 'odi' => 'application/vnd.oasis.opendocument.image', + 'oti' => 'application/vnd.oasis.opendocument.image-template', + 'odp' => 'application/vnd.oasis.opendocument.presentation', + 'otp' => 'application/vnd.oasis.opendocument.presentation-template', + 'ods' => 'application/vnd.oasis.opendocument.spreadsheet', + 'ots' => 'application/vnd.oasis.opendocument.spreadsheet-template', + 'odt' => 'application/vnd.oasis.opendocument.text', + 'otm' => 'application/vnd.oasis.opendocument.text-master', + 'ott' => 'application/vnd.oasis.opendocument.text-template', + 'oth' => 'application/vnd.oasis.opendocument.text-web', + 'docm' => 'application/vnd.ms-word.document.macroEnabled.12', + 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', + 'dotm' => 'application/vnd.ms-word.template.macroEnabled.12', + 'dotx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.template', + 'ppsm' => 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12', + 'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', + 'pptm' => 'application/vnd.ms-powerpoint.presentation.macroEnabled.12', + 'pptx' => 'application/vnd.openxmlformats-officedocument.presentationml.presentation', + 'xlsb' => 'application/vnd.ms-excel.sheet.binary.macroEnabled.12', + 'xlsm' => 'application/vnd.ms-excel.sheet.macroEnabled.12', + 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', + 'xps' => 'application/vnd.ms-xpsdocument', + 'rar' => 'application/x-rar-compressed', + 'vcf' => 'text/vcard', + 'ics' => 'text/calendar', +); + +?>
\ No newline at end of file diff --git a/share/templates/roundcubemail/owncloud.inc.php.tpl b/share/templates/roundcubemail/owncloud.inc.php.tpl new file mode 100644 index 0000000..7410a53 --- /dev/null +++ b/share/templates/roundcubemail/owncloud.inc.php.tpl @@ -0,0 +1,4 @@ +<?php + // ownCloud URL + \$rcmail_config['owncloud_url'] = 'http://webmail.klab.cc/owncloud'; +?>
\ No newline at end of file diff --git a/share/templates/roundcubemail/password.inc.php.tpl b/share/templates/roundcubemail/password.inc.php.tpl new file mode 100644 index 0000000..992ccc6 --- /dev/null +++ b/share/templates/roundcubemail/password.inc.php.tpl @@ -0,0 +1,151 @@ +<?php + +// Password Plugin options +// ----------------------- +// A driver to use for password change. Default: "sql". +// See README file for list of supported driver names. +\$rcmail_config['password_driver'] = 'ldap'; + +// Determine whether current password is required to change password. +// Default: false. +\$rcmail_config['password_confirm_current'] = true; + +// Require the new password to be a certain length. +// set to blank to allow passwords of any length +\$rcmail_config['password_minimum_length'] = 6; + +// Require the new password to contain a letter and punctuation character +// Change to false to remove this check. +\$rcmail_config['password_require_nonalpha'] = false; + +// Enables logging of password changes into logs/password +\$rcmail_config['password_log'] = true; + + +// LDAP and LDAP_SIMPLE Driver options +// ----------------------------------- +// LDAP server name to connect to. +// You can provide one or several hosts in an array in which case the hosts are tried from left to right. +// Exemple: array('ldap1.exemple.com', 'ldap2.exemple.com'); +// Default: 'localhost' +\$rcmail_config['password_ldap_host'] = 'localhost'; + +// LDAP server port to connect to +// Default: '389' +\$rcmail_config['password_ldap_port'] = '389'; + +// TLS is started after connecting +// Using TLS for password modification is recommended. +// Default: false +\$rcmail_config['password_ldap_starttls'] = false; + +// LDAP version +// Default: '3' +\$rcmail_config['password_ldap_version'] = '3'; + +// LDAP base name (root directory) +// Exemple: 'dc=exemple,dc=com' +\$rcmail_config['password_ldap_basedn'] = '$ldap_user_base_dn'; + +// LDAP connection method +// There is two connection method for changing a user's LDAP password. +// 'user': use user credential (recommanded, require password_confirm_current=true) +// 'admin': use admin credential (this mode require password_ldap_adminDN and password_ldap_adminPW) +// Default: 'user' +\$rcmail_config['password_ldap_method'] = 'user'; + +// LDAP Admin DN +// Used only in admin connection mode +// Default: null +\$rcmail_config['password_ldap_adminDN'] = null; + +// LDAP Admin Password +// Used only in admin connection mode +// Default: null +\$rcmail_config['password_ldap_adminPW'] = null; + +// LDAP user DN mask +// The user's DN is mandatory and as we only have his login, +// we need to re-create his DN using a mask +// '%login' will be replaced by the current roundcube user's login +// '%name' will be replaced by the current roundcube user's name part +// '%domain' will be replaced by the current roundcube user's domain part +// '%dc' will be replaced by domain name hierarchal string e.g. "dc=test,dc=domain,dc=com" +// Exemple: 'uid=%login,ou=people,dc=exemple,dc=com' +// \$rcmail_config['password_ldap_userDN_mask'] = 'uid=%login,ou=people,dc=exemple,dc=com'; + +// LDAP search DN +// The DN roundcube should bind with to find out user's DN +// based on his login. Note that you should comment out the default +// password_ldap_userDN_mask setting for this to take effect. +// Use this if you cannot specify a general template for user DN with +// password_ldap_userDN_mask. You need to perform a search based on +// users login to find his DN instead. A common reason might be that +// your users are placed under different ou's like engineering or +// sales which cannot be derived from their login only. +\$rcmail_config['password_ldap_searchDN'] = '$ldap_service_bind_dn'; + +// LDAP search password +// If password_ldap_searchDN is set, the password to use for +// binding to search for user's DN. Note that you should comment out the default +// password_ldap_userDN_mask setting for this to take effect. +// Warning: Be sure to set approperiate permissions on this file so this password +// is only accesible to roundcube and don't forget to restrict roundcube's access to +// your directory as much as possible using ACLs. Should this password be compromised +// you want to minimize the damage. +\$rcmail_config['password_ldap_searchPW'] = '$ldap_service_bind_pw'; + +// LDAP search base +// If password_ldap_searchDN is set, the base to search in using the filter below. +// Note that you should comment out the default password_ldap_userDN_mask setting +// for this to take effect. +\$rcmail_config['password_ldap_search_base'] = '$ldap_user_base_dn'; + +// LDAP search filter +// If password_ldap_searchDN is set, the filter to use when +// searching for user's DN. Note that you should comment out the default +// password_ldap_userDN_mask setting for this to take effect. +// '%login' will be replaced by the current roundcube user's login +// '%name' will be replaced by the current roundcube user's name part +// '%domain' will be replaced by the current roundcube user's domain part +// '%dc' will be replaced by domain name hierarchal string e.g. "dc=test,dc=domain,dc=com" +// Example: '(uid=%login)' +// Example: '(&(objectClass=posixAccount)(uid=%login))' +\$rcmail_config['password_ldap_search_filter'] = '(&(|(uid=%login)(mail=%login)(mailAlternateAddress=%login)(alias=%login))(objectclass=kolabinetorgperson))'; + +// LDAP password hash type +// Standard LDAP encryption type which must be one of: crypt, +// ext_des, md5crypt, blowfish, md5, sha, smd5, ssha, or clear. +// Please note that most encodage types require external libraries +// to be included in your PHP installation, see function hashPassword in drivers/ldap.php for more info. +// Default: 'crypt' +\$rcmail_config['password_ldap_encodage'] = 'clear'; + +// LDAP password attribute +// Name of the ldap's attribute used for storing user password +// Default: 'userPassword' +\$rcmail_config['password_ldap_pwattr'] = 'userPassword'; + +// LDAP password force replace +// Force LDAP replace in cases where ACL allows only replace not read +// See http://pear.php.net/package/Net_LDAP2/docs/latest/Net_LDAP2/Net_LDAP2_Entry.html#methodreplace +// Default: true +\$rcmail_config['password_ldap_force_replace'] = true; + +// LDAP Password Last Change Date +// Some places use an attribute to store the date of the last password change +// The date is meassured in "days since epoch" (an integer value) +// Whenever the password is changed, the attribute will be updated if set (e.g. shadowLastChange) +\$rcmail_config['password_ldap_lchattr'] = ''; + +// LDAP Samba password attribute, e.g. sambaNTPassword +// Name of the LDAP's Samba attribute used for storing user password +\$rcmail_config['password_ldap_samba_pwattr'] = ''; + +// LDAP Samba Password Last Change Date attribute, e.g. sambaPwdLastSet +// Some places use an attribute to store the date of the last password change +// The date is meassured in "seconds since epoch" (an integer value) +// Whenever the password is changed, the attribute will be updated if set +\$rcmail_config['password_ldap_samba_lchattr'] = ''; + +?> diff --git a/share/templates/roundcubemail/recipient_to_contact.inc.php.tpl b/share/templates/roundcubemail/recipient_to_contact.inc.php.tpl new file mode 100644 index 0000000..f3b8d2f --- /dev/null +++ b/share/templates/roundcubemail/recipient_to_contact.inc.php.tpl @@ -0,0 +1,4 @@ +<?php + \$rcmail_config['recipient_to_contact_addressbooks'] = array(); + \$rcmail_config['recipient_to_contact_enabled_by_default'] = true; +?>
\ No newline at end of file diff --git a/share/templates/roundcubemail/terms.html.tpl b/share/templates/roundcubemail/terms.html.tpl new file mode 100644 index 0000000..4fcabc7 --- /dev/null +++ b/share/templates/roundcubemail/terms.html.tpl @@ -0,0 +1,10 @@ +<html> + <head> + </head> + <body> + <h1>Welcome to Kolab Groupware</h1> + <p> + Here could be your Message of the Day. + </p> + </body> +</html> diff --git a/share/templates/roundcubemail/terms.inc.php.tpl b/share/templates/roundcubemail/terms.inc.php.tpl new file mode 100644 index 0000000..5faa888 --- /dev/null +++ b/share/templates/roundcubemail/terms.inc.php.tpl @@ -0,0 +1,18 @@ +<?php + +/* terms plugin */ + +// log accepted terms +\$rcmail_config['terms_log'] = true; + +// renew agreement if older than YYYY-MM-DD HH:MM:SS +// NOTICE: Must be in past and set accordingly to server Timezone!!! +\$rcmail_config['terms_date'] = '2011-02-24 00:00:00'; + +// renew agreement automatically afer x days +\$rcmail_config['terms_renew'] = 28; // 0 = never + +// always request terms agreement after login +\$rcmail_config['terms_always'] = false; + +?> |