[imp] Default address book(s) for expanding addresses

Paul Hancock phancock at phxlib.org
Thu Jan 2 13:54:54 PST 2003


I am unable to get the defaults to select correctly in imp for expanding
addresses.  When a user goes into Options/Address Books, there are no
address books selected.  Instead, both address books are in the
"available" box.  I set search_fields and search_sources, which I
understand is supposed to set the defaults, but it does not seem to.

PPL is an LDAP directory, and localsql is the personal addressbook target:

// address book(s) to use when expanding addresses
// You can provide default values this way (note the \t and the double quotes):
$_prefs['search_sources'] = array(
    'value' => 'PPL\tlocalsql',
    'locked' => false,
    'shared' => false,
    'type' => 'implicit');

// field(s) to use when expanding addresses
// This depends on the search_sources preference if you want to provide
// default values:
$_prefs['search_fields'] = array(
    'value' => 'PPL\tname\tusername\temail\tlocalldap\tname\temail',
    'locked' => false,
    'shared' => false,
    'type' => 'implicit');

Expand names works if one goes into the address books option and manually
sets it up.

Any ideas why the defaults aren't being set?  I insured that all
preferences for the test user had been deleted from the preferences
database.

Thanks!

                -- Paul (phancock at phxlib.org)


More information about the imp mailing list