10 Jul 2012 15:05
multiple imap servers
jason kawaja <kawaja <at> ece.ufl.edu>
2012-07-10 13:05:12 GMT
2012-07-10 13:05:12 GMT
greetings list, been running version 3 for a long while and i must be missing something obvious as i was reading http://wiki.horde.org/ImapSelect and have the following in my setup : horde/imp/config/conf.php <?php $conf['hooks']['preauthenticate'] = true; ... horde/imp/config/hooks.php <?php if (!function_exists('_horde_hook_preauthenticate')) { function _horde_hook_preauthenticate($userID, $credential, $realm) { require dirname(__FILE__) . '/../imp/config/servers.php'; // Convert all to lower chars (even the possible domain part) $userID=strtolower($userID); // Strip domain part from user, if it exists. if (($domainpart = strpos($userID, ' <at> '))) { $server=substr($userID, $domainpart+1); $userID=substr($userID, 0, $domainpart); // Change the values only if a domain part was found ... if (!empty($server)) { foreach ($servers as $serverkey => $curServer) { if (!empty($curServer['realm']) && $server == $curServer['realm']) { // We found an entry, now set IMAP server values. foreach (array('server', 'folders', 'namespace',(Continue reading)
RSS Feed