Re: [imp] Hooks for search_sources/search_fields

2011-06-15 Thread Marco
Marco csi.it> writes: > [...] > > It seems that with this: > {"939e0d883993d2a7a36e0b4bc68d3bbe":["name","email"],"localldap": > ["name","email"]} > > autocomplete doesn't work: no search has done. > > Into web IMP addressbook preferences I see my addressbooks on right panel with > only "name

Re: [imp] Hooks for search_sources/search_fields

2011-06-14 Thread Laurent Foucher
Marco a écrit : Laurent Foucher iut-tlse3.fr> writes: Maybe could be integrated in the systemlogintask. Useful. Maybe you can add a BUG request. Thanks a lot Marco Done, with a partial copy of my mail. -- - Laurent Foucher < I U T 'A' Paul Sabatier > laurent.fouc...@iut-tlse3.fr Ense

Re: [imp] Hooks for search_sources/search_fields

2011-06-14 Thread Marco
Laurent Foucher iut-tlse3.fr> writes: > Maybe could be integrated in the systemlogintask. Useful. Maybe you can add a BUG request. Thanks a lot Marco -- IMP mailing list Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: imp-unsubscr...@lists.horde.org

Re: [imp] Hooks for search_sources/search_fields

2011-06-10 Thread Laurent Foucher
Marco a écrit : Ralf Lang b1-systems.de> writes: I have a hook writing three identities and imp reads them and uses them. The identity details don't show up in imp's separate configuration fields though. In my prefs I only locked 'from_addr'. All identities work on horde-webmail-1.2.9:

Re: [imp] Hooks for search_sources/search_fields

2011-06-09 Thread Marco
Ralf Lang b1-systems.de> writes: > I have a hook writing three identities and imp reads them and uses them. The > identity details don't show up in imp's separate configuration fields though. In my prefs I only locked 'from_addr'. All identities work on horde-webmail-1.2.9: IMP uses them and

Re: [imp] Hooks for search_sources/search_fields

2011-06-09 Thread Ralf Lang
> It seems they are not read from backend. I make this example to be more > clear. > > A user have multiple identities as defined in the backend: > I have a hook writing three identities and imp reads them and uses them. The identity details don't show up in imp's separate configuration fields

Re: [imp] Hooks for search_sources/search_fields

2011-06-09 Thread Marco
Jan Schneider horde.org> writes: > > Upgrading from horde 3 I also see that there are other preferences > > not read from > > db: 'fullname' and all about multiple identities. > > fullname is an identity pref, it's not used or read from the backend > individually. > I'm not sure what mean wi

Re: [imp] Hooks for search_sources/search_fields

2011-06-09 Thread Marco
Marco csi.it> writes: > (but in web preferences address book have still have only "name" and "email" > selected, ...I'm confused) ...this is beacuse in backend I have: table: horde_prefs pref_scope: horde pref_name: search_fields pref_value: 7724a026e66eb49c8bc20f75bc5dcf56 d05a78fe4ca320316306

Re: [imp] Hooks for search_sources/search_fields

2011-06-09 Thread Marco
Jan Schneider horde.org> writes: > The search_fields preference expects a json-encoded array. Just pass > $out through json_encode(). > > Jan. I already encoded it, my hook is: public function prefs_init($pref, $value, $username, $scope_ob) { switch ($pref) { case 'a

Re: [imp] Hooks for search_sources/search_fields

2011-06-08 Thread Jan Schneider
Zitat von Marco : Marco csi.it> writes: Hi, I have the IMP 5.0.5 hooks for search_sources/search_fields. I don't want to search all field mapped in turba, so I tried to restrict search to 'search' fields. I would notice that in previous IMP version hook only applies to new user without p

Re: [imp] Hooks for search_sources/search_fields

2011-06-08 Thread Jan Schneider
Zitat von Marco : Hi, I have the IMP 5.0.5 hooks for search_sources/search_fields. I don't want to search all field mapped in turba, so I tried to restrict search to 'search' fields. So I replaced $out[$source] = array_keys($GLOBALS['registry'] ->call('contacts/fields', array($source)));

Re: [imp] Hooks for search_sources/search_fields

2011-06-08 Thread Marco
Marco csi.it> writes: > > Hi, > I have the IMP 5.0.5 hooks for search_sources/search_fields. > I don't want to search all field mapped in turba, so I tried to restrict > search to 'search' fields. I would notice that in previous IMP version hook only applies to new user without preferences set

[imp] Hooks for search_sources/search_fields

2011-06-08 Thread Marco
Hi, I have the IMP 5.0.5 hooks for search_sources/search_fields. I don't want to search all field mapped in turba, so I tried to restrict search to 'search' fields. So I replaced $out[$source] = array_keys($GLOBALS['registry'] ->call('contacts/fields', array($source))); (line 80 of hooks.p