[horde] Can't get function "_prefs_hook_from_addr" to
work(HEAD)
Jan Schneider
jan at horde.org
Wed Feb 26 15:50:27 PST 2003
Quoting Garry Thomas <gthomas at netstarnetworks.com>:
> I've enabled this in the older versions of IMP.....
>
> 'imp_expand_fromaddress'
>
> But its all different now. I notice under the IMP config screens
> via the admin interface, that there is a Custom Hooks section, but
> this seems only IMP based (naturally), not PREF's based. In the
> IMP prefs.php file, there is also a reference to the 'from_addr'
> hook. This looked OK to me - is something different needed here?
Ah yes, you're right. I never used hooks and I forgot that this has changed.
> Is this what you mean by activating it? Making a change in this
> prefs.php file?
Yes, you need to activate the preference hooks now in config/prefs.php as
explained in hooks.php.
> Also, I've dropped the Horde database, and reconstucted to make
> it seem that the user hasn't logged in before.
> > -----Original Message-----
> > [mailto:horde-bounces at lists.horde.org] On Behalf Of Jan Schneider
> >
> > Quoting Garry Thomas <gthomas at netstarnetworks.com>:
> >
> > > Hi,
> > > I can't get the function _prefs_hook_from_addr()
> > > to work. I'm trying to set the user's from address
> > > (from ldap btw), but no matter what I try, I can't even
> > > get this function to be called, let alone actually work.
> > > Even if I put obvious "debug" type code, or even errors in
> > > the code, it doesn't seem to even get called.
> > >
> > > Besides just declaring this function in hooks.php,
> > > , and noting the NOTES at the beginning of the hooks.php
> > > file, what else has to be done?
> >
> > You need to activate the hook in IMP's configuration. And it
> > only works if
> > the user doesn't have a from address yet, that is if he never
> > logged in before.
Jan.
--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft
More information about the horde
mailing list