Advertisement
Guest User

Untitled

a guest
Apr 17th, 2015
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.83 KB | None | 0 0
  1.   public function transport_auth($driver)
  2.     {
  3.         switch ($driver) {
  4.         case 'foo':
  5.             // Example #1: Use full Horde username for password.
  6.             // This is generally needed for sieve servers.
  7.             $full_user = $GLOBALS['registry']->getAuth(null);
  8.             return array(
  9.                 'euser' => $full_user,
  10.                 'username' => $full_user
  11.             );
  12. //
  13. //            // Example #2: Use IMP password/username.
  14. //            $ob = $GLOBALS['registry']->call('mail/imapOb');
  15. //            return array(
  16. //                'password' => $ob->getParam('password'),
  17. //                'username' => $ob->getParam('username')
  18. //            );
  19.         }
  20. //
  21. //        // DEFAULT: Use hordeauth (identical to not defining hook at all).
  22. //        return true;
  23.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement