[pkg-kolab] kolab-webclient and sieve server
Neil Price
nprice at gibb.co.za
Mon Oct 22 12:49:04 UTC 2012
Kolab-webclient - looks like it is still in experimental.
Does not choose the correct sieve server with a multiserver setup and
the user's mail server is not the default one for horde, hence vacation
only works for those on default server.
Below is a hack quick fix. Tests OK so far.
diff /etc/kolab-webclient/ingo1/backends.php
/etc/kolab-webclient/ingo1/backends.php.new
308,310c308,323
< if (!is_callable('Kolab', 'getServer')) {
< $server = $GLOBALS['conf']['kolab']['imap']['server'];
< } else {
---
> 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;
> $server = $imapParams['hostspec'];
> }
> }
> if ($useDefaults)
> if (!is_callable('Kolab', 'getServer')) {
> $server = $GLOBALS['conf']['kolab']['imap']['server'];
> } else {
313c326
More information about the pkg-kolab-devel
mailing list