[horde] Creating a prefs_change replyto_addr hook

Jarvis Bilkoh jarvisbilkoh at gmail.com
Thu Apr 3 20:33:42 UTC 2014


I want to make sure the user can't change the replyto_addr outside a domain
list. I've tried creating a pref_change entry to make this happen.
Unfortunately, it doesn't seem to call it.

$_prefs['prefs_change']['hook'] = true;

    public function prefs_change($pref)
    {
        switch ($pref) {
        case 'replyto_addr':
            Horde::log('This is where Reply-To is changed.', 'INFO');
            break;
        }
    }

Even if it did. I'm not sure how to set/get the value... I'm guessing...

$identity = $injector->getInstance('IMP_Identity');
$identity->getValue('replyto_addr');
$identity->setValue('replyto_addr');


JB


More information about the horde mailing list