gunnar: server/kolab-webclient/imp/configuration/imp-4.3.6 10-kolab_conf_base.php, NONE, 1.1 10-kolab_hooks_base.php, NONE, 1.1 10-kolab_servers_base.php, NONE, 1.1
cvs at kolab.org
cvs at kolab.org
Mon Jan 18 18:44:24 CET 2010
- Previous message: gunnar: server/kolab-webclient/imp/templates/imp-4.3.6 webclient-imp_conf.php.template, NONE, 1.1 webclient-imp_header.php.template, NONE, 1.1 webclient-imp_hooks.php.template, NONE, 1.1 webclient-imp_menu.php.template, NONE, 1.1 webclient-imp_mime_drivers.php.template, NONE, 1.1 webclient-imp_motd.php.template, NONE, 1.1 webclient-imp_prefs.php.template, NONE, 1.1 webclient-imp_servers.php.template, NONE, 1.1 webclient-imp_spelling.php.template, NONE, 1.1
- Next message: gunnar: server/kolab-webclient/horde horde.spec,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: gunnar
Update of /kolabrepository/server/kolab-webclient/imp/configuration/imp-4.3.6
In directory doto:/tmp/cvs-serv7556/configuration/imp-4.3.6
Added Files:
10-kolab_conf_base.php 10-kolab_hooks_base.php
10-kolab_servers_base.php
Log Message:
A first draft of the imp package.
--- NEW FILE: 10-kolab_conf_base.php ---
<?php
$conf['spell']['driver'] = 'aspell';
$conf['utils']['gnupg'] = '/usr/bin/gpg';
$conf['hooks']['mbox_redirect'] = true;
$conf['hooks']['mbox_icon'] = true;
$conf['hooks']['display_folder'] = true;
$conf['sentmail']['driver'] = 'none';
--- NEW FILE: 10-kolab_hooks_base.php ---
<?php
if (!function_exists('_imp_hook_display_folder')) {
function _imp_hook_display_folder($mailbox)
{
$type = Kolab::getMailboxType($mailbox);
return empty($type) || $type == 'mail';
}
}
--- NEW FILE: 10-kolab_servers_base.php ---
<?php
$servers = array();
if (isset($_SESSION['imp']['user']) && isset($_SESSION['imp']['pass'])) {
require_once 'Horde/Kolab/Session.php';
$session = Horde_Kolab_Session::singleton($_SESSION['imp']['user'],
array('password' => Secret::read(Secret::getKey('imp'), $_SESSION['imp']['pass'])));
$imapParams = $session->getImapParams();
if (is_a($imapParams, 'PEAR_Error')) {
$useDefaults = true;
} else {
$useDefaults = false;
}
$_SESSION['imp']['uniquser'] = $session->user_mail;
} else {
$useDefaults = true;
}
if ($useDefaults) {
require_once 'Horde/Kolab.php';
if (is_callable('Kolab', 'getServer')) {
$server = Kolab::getServer('imap');
if (is_a($server, 'PEAR_Error')) {
$useDefaults = true;
} else {
$useDefaults = false;
}
} else {
$useDefaults = true;
}
if ($useDefaults) {
$server = $GLOBALS['conf']['kolab']['imap']['server'];
}
$imapParams = array(
'hostspec' => $server,
'port' => $GLOBALS['conf']['kolab']['imap']['port'],
'protocol' => $GLOBALS['conf']['auth']['params']['protocol']
);
}
$servers['kolab'] = array(
'name' => 'Kolab Cyrus IMAP Server',
'hordeauth' => 'full',
'server' => $imapParams['hostspec'],
'port' => $imapParams['port'],
'protocol' => $imapParams['protocol'],
'maildomain' => $GLOBALS['conf']['kolab']['imap']['maildomain'],
'realm' => '',
'preferred' => '',
'quota' => array(
'driver' => 'imap',
'params' => array('hide_quota_when_unlimited' => true),
),
'acl' => array(
'driver' => 'rfc2086',
),
);
- Previous message: gunnar: server/kolab-webclient/imp/templates/imp-4.3.6 webclient-imp_conf.php.template, NONE, 1.1 webclient-imp_header.php.template, NONE, 1.1 webclient-imp_hooks.php.template, NONE, 1.1 webclient-imp_menu.php.template, NONE, 1.1 webclient-imp_mime_drivers.php.template, NONE, 1.1 webclient-imp_motd.php.template, NONE, 1.1 webclient-imp_prefs.php.template, NONE, 1.1 webclient-imp_servers.php.template, NONE, 1.1 webclient-imp_spelling.php.template, NONE, 1.1
- Next message: gunnar: server/kolab-webclient/horde horde.spec,1.5,1.6
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the commits
mailing list