[imp] Set default address book

Daniel A. Ramaley daniel.ramaley at DRAKE.EDU
Tue May 16 06:58:51 PDT 2006


On Tuesday 16 May 2006 03:15, Jan Schneider wrote:
>Zitat von "Daniel A. Ramaley" <daniel.ramaley at DRAKE.EDU>:
>> Hello. I am running Imp 4.1.1 on Horde 3.1.1. How can i specify
>> which address book source in horde/imp/compose.php is the default?
>
>config/prefs.php like *any* preference.

Thanks for the response. There are three settings in Imp's prefs.php 
that seem relevant. The search_sources and search_fields are already 
specified in the order that i want, but Imp does not honor the 
ordering. If the third (sourceselect) setting is the one that i need to 
change, how do i change it? The comments above sourceselect do not make 
it clear to me what to do with it, unlike the other settings.


// address book selection widget
$_prefs['sourceselect'] = array('type' => 'special');

// address book(s) to use when expanding addresses
// You can provide default values this way (note the \t and the double 
quotes):
// 'value' => "source_one\tsource_two"
// refer to turba/config/sources.php for possible source values
$_prefs['search_sources'] = array(
    'value' => "localsql\tfacstaff_ldap\tstudent_ldap",
    '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:
// 'value' => 
"source_one\tfield_one\tfield_two\nsource_two\tfield_three"
// will search the fields 'field_one' and 'field_two' in source_one and
// 'field_three' in source_two.
// refer to turba/config/sources.php for possible source and field 
values
$_prefs['search_fields'] = array(
    'value' => 
"localsql\tname\temail\nfacstaff_ldap\tname\temail\tdepartment\nstudent_ldap\tname\temail\n",
    'locked' => false,
    'shared' => false,
    'type' => 'implicit');

------------------------------------------------------------------------
Dan Ramaley                            Dial Center 118, Drake University
Network Programmer/Analyst             2407 Carpenter Ave
+1 515 271-4540                        Des Moines IA 50311 USA


More information about the imp mailing list