[imp] Change conf value after login

Marco falon at csi.it
Thu Jul 16 10:14:02 UTC 2009


Jan Schneider <jan <at> horde.org> writes:

> 
> Zitat von Marco <falon <at> csi.it>:
> 
> > Hi,
> > I explain in particular what I would like.
> > I need an hook that set, after login, the IMP configuration variable
> > $conf['compose']['link_attachments'].
> >
> > I tried with:
> >
> >  if (!function_exists('_imp_hook_postlogin')) {
> >      function _imp_hook_postlogin($actionID, $isLogin)
> >      {
> >         global $registry;
> >
> >
> > $GLOBALS['registry']->_confCache['imp']['compose']['link_attachments'] =  
> > true;
> >
> >         return true;
> >      }
> >  }
[...]
> > Could you show me how to set this value?
> 
> Setting $GLOBALS['conf'].... didn't do it?

No, it didn't work. Something rewrite this setting after.
I also tried with horde hook authenticate:

 if (!function_exists('_horde_hook_postauthenticate')) {
     function _horde_hook_postauthenticate($userID, $credential, $realm)
     {

        $GLOBALS['conf']['compose']['link_attachments'] = 1;
        return true;
     }
 }

...but it don't work.

Thanks again
marco




More information about the imp mailing list