[imp] autopopulating default identity

Liam Hoekenga liamr@umich.edu
Mon, 28 Jan 2002 15:40:27 -0500


> Have you tried using $GLOBALS['imp']['maildomain']?

That worked swell.

Would it possible to use $registry->call('contacts/search', .....) to 
fill in $_prefs['fullname']['value']?  I'd tried something like

$_prefs['fullname'] = array(
    'value' => $registry->call('contacts/search', array($GLOBALS['imp']['user'],
'umod', 'uniqname')),
    'locked' => false,
    'shared' => true,
    'type' => 'implicit'
);

where "umod" is the name turba source, and uniqname is the field I wanted
lookup..  I also tried 

$registry->call('contacts/search', array(
    array($GLOBALS['imp']['user']),
    array('umod'),
    array('uniqname'))

because it looked like from the search code in compose.php that
$registry->call('contacts/search'....) wanted to be passed arrays.

In both cases, I got a bunch of:
[28-Jan-2002 12:29:41] PHP Fatal error:  Call to a member function on a
non-object in /usr/local/projects/webmail/html-ssl/horde/imp/config/prefs.php on
line 199

which implies to me that perhaps it was actually calling the function, but I
wasn't calling it correctly.

Am I on the right track?  Can this be made to work?
Liam