Quoting soe...@mindorf-it.de:
Hi all, I tried with no success. I did not have any debug logfile. Here are my configuration again with debug: imp/config/hooks.php: <?php /** * IMP Hooks configuration file. * * For more information please see the hooks.php.dist file. */ class IMP_Hooks { /** * PREFERENCE INIT: Set preference values on login. * * See horde/config/hooks.php.dist for more information. */ public function prefs_init($pref, $value, $username, $scope_ob) { switch ($pref) { case 'add_source': // Dynamically set the add_source preference. return is_null($username) ? $value : $GLOBALS['registry']->call('contacts/getDefaultShare'); case 'search_fields': case 'search_sources': // Dynamically set the search_fields/search_sources preferences. if (!is_null($username)) { $sources = $GLOBALS['registry']->call('contacts/sources'); if ($pref == 'search_fields') { $out = array(); foreach (array_keys($sources) as $source) {$out[$source] = array_keys($GLOBALS['registry']->call('contacts/fields', array($source)));} } else { $out = array_keys($sources); } return json_encode($out); } return $value; } } } ingo/config/hooks.php: <?php class Ingo_Hooks { public function transport_auth($driver) { switch ($driver) { case ’timsieved’: // $ob = $GLOBALS[’registry’]->call(’mail/imapOb’); // return array( // ’euser’ => $ob->getParam(’username’), // ’password’ => $ob->getParam(’password’), // ’username’ => $ob->getParam(’username’) // ); $full_user = $GLOBALS['registry']->getAuth('original'); Horde::debug($GLOBALS['registry']->getAuth()); return array( 'euser' => $full_user, 'username' => $full_user ); } // return true; } } My systems tmp Folder is /tmp but there is no horde_debug.txt.
Either the hook isn't being run, the webserver can't write to /tmp folder, or it's actually writing elsewhere. Try using Horde::log($GLOBALS['registry']->getAuth(), 'ERR') which will log to your normal Horde log as an ERR.
-- mike The Horde Project http://www.horde.org https://www.facebook.com/hordeproject https://www.twitter.com/hordeproject
smime.p7s
Description: S/MIME Signature
-- imp mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: imp-unsubscr...@lists.horde.org