[imp] Hooks for search_sources/search_fields
Jan Schneider
jan at horde.org
Wed Jun 8 15:34:09 UTC 2011
Zitat von Marco <falon at csi.it>:
> Marco <falon <at> 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.
>
> 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 with identities. Are they not converted to the
new format after logging in for the first time, or are they not read
from the backend at all?
> Regards
> Marco
>
> My conf:
>
> horde prefs.local.php
>
> $_prefs['fullname']['hook'] = true;
> $_prefs['from_addr']['hook'] = true;
> $_prefs['from_addr']['locked'] = true;
> $_prefs['twentyFour']['value'] = true;
> $_prefs['first_week_day']['value'] = 1;
> $_prefs['summary_refresh_time']['value'] = 900;
> $_prefs['sidebar_width']['value'] = 200;
> $_prefs['initial_application']['value'] = 'imp';
> unset($prefGroups['remote']);
> unset($prefGroups['forgotpass']);
>
> horde conf.php:
> $conf['vhosts'] = true;
> $conf['debug_level'] = E_ALL & ~E_NOTICE;
> $conf['max_exec_time'] = 0;
> $conf['compress_pages'] = true;
> $conf['secret_key'] = 'xxx';
> $conf['umask'] = 077;
> $conf['testdisable'] = false;
> $conf['use_ssl'] = 2;
> $conf['server']['name'] = $_SERVER['SERVER_NAME'];
> $conf['server']['port'] = $_SERVER['SERVER_PORT'];
> $conf['urls']['token_lifetime'] = 60;
> $conf['urls']['hmac_lifetime'] = 60;
> $conf['urls']['pretty'] = 'rewrite';
> $conf['safe_ips'] = array();
> $conf['session']['name'] = 'Horde';
> $conf['session']['use_only_cookies'] = true;
> $conf['session']['cache_limiter'] = 'nocache';
> $conf['session']['timeout'] = 0;
> $conf['cookie']['domain'] = $_SERVER['SERVER_NAME'];
> $conf['cookie']['path'] = '/';
> $conf['sql']['username'] = 'webmail';
> $conf['sql']['password'] = 'xxx';
> $conf['sql']['hostspec'] = 'sql.it';
> $conf['sql']['port'] = 3311;
> $conf['sql']['protocol'] = 'tcp';
> $conf['sql']['database'] = 'webmaildb';
> $conf['sql']['charset'] = 'utf-8';
> $conf['sql']['splitread'] = false;
> $conf['sql']['ssl'] = false;
> $conf['sql']['phptype'] = 'mysqli';
> $conf['ldap']['hostspec'] = 'ldap.it';
> $conf['ldap']['tls'] = false;
> $conf['ldap']['version'] = 3;
> $conf['ldap']['binddn'] = 'add';
> $conf['ldap']['bindpw'] = 'xxx';
> $conf['ldap']['bindas'] = 'admin';
> $conf['ldap']['useldap'] = true;
> $conf['auth']['admins'] = array('admin');
> $conf['auth']['checkip'] = true;
> $conf['auth']['checkbrowser'] = true;
> $conf['auth']['alternate_login'] = false;
> $conf['auth']['redirect_on_logout'] = false;
> $conf['auth']['list_users'] = 'list';
> $conf['auth']['params']['app'] = 'imp';
> $conf['auth']['driver'] = 'application';
> $conf['signup']['allow'] = false;
> $conf['log']['priority'] = 'DEBUG';
> $conf['log']['ident'] = 'HORDE';
> $conf['log']['name'] = LOG_MAIL;
>
> imp prefs.local.php
> <?php
> $_prefs['alias_addr']['locked'] = true;
> $_prefs['bcc_addr']['locked'] = true;
> $_prefs['sig_dashes']['value'] = 1;
> $_prefs['delete_attachments_monthly_keep']['value'] = 0;
> $_prefs['compose_cursor']['value'] = 'sig';
> $_prefs['save_attachments']['value'] = 'prompt_yes';
> $_prefs['reply_headers']['value'] = 1;
> $_prefs['strip_attachments']['value'] = 1;
> $_prefs['mailbox_return']['value'] = 1;
> $_prefs['use_trash']['value'] = 1;
> $_prefs['refresh_time']['value'] = 900;
> $_prefs['preview_enabled']['value'] = 1;
> $_prefs['preview_enabled']['locked'] = false;
> $_prefs['preview_show_unread']['value'] = 0;
> $_prefs['preview_show_tooltip']['value'] = 1;
> $_prefs['vfolder']['value'] = serialize(array(
> new IMP_Search_Vfolder_Vinbox(array(
> 'disable' => true
> )),
> new IMP_Search_Vfolder_Vtrash(array(
> 'disable' => true
> ))
> ));
>
> # We have shared turba, so we use hook.
> $_prefs['search_sources']['hook'] = true;
> $_prefs['search_fields']['hook'] = true;
> $_prefs['add_source']['hook'] = true;
>
> --
> IMP mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the imp
mailing list