[imp] Multiple autocomplete address books

Elliot Anders elliot at marlboro.edu
Thu Jul 10 20:27:41 UTC 2008


I have three address books successfully working simultaneously in  
Turba, but Imp only sees the first one listed in the sources.php  
file.  Is there a setting other than those below I need to enable to  
get Imp's autocomplete feature to see the other two address books?  Re- 
arranging the Turba sources.php file does actually affect the imp  
autocomplete, but only one source ever works at any given time.

I'm using Horde Webmail 1.1, below is the relevant section of Imp's  
prefs.php:

// 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' => "marlboroldap\tlocalsql\tfavorites",
     'locked' => true,
     '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\nmarlboroldap\tname\temail 
\nfavorites\tname\temail",
     'locked' => true,
     'shared' => false,
     'type' => 'implicit');

// address book to use for adding addresses
// put $cfgSources array element name in the value field.
// Setting value to localsql would allow you to add contacts to MySQL  
database
// See turba/config/sources.php for more info
$_prefs['add_source'] = array(
     'value' => 'localsql',
     'locked' => true,
     'shared' => false,
     'type' => 'implicit'
);


Thanks for any insight,
Elliot
  


More information about the imp mailing list