[imp] From field

michael.bartlett at workshare.com michael.bartlett at workshare.com
Fri Aug 1 05:27:17 PDT 2003


I found something in /imp/config/conf.php relating to imp_set_fullname. I
changed the config to look like this:

$conf['hooks']['fullname'] = 'imp_set_fullname';

/* Here is an example imp_set_fullname function to set the fullname
 * from the GECOS information in the passwd file.
 */
if (!function_exists('imp_set_fullname')) {
    function imp_set_fullname ($imp) {
        $array = posix_getpwnam($imp['user']);
        $gecos_array = explode(',', $array['gecos']);
        return (empty($gecos_array) ? $imp['user'] : $gecos_array[0]);
    }
}

And it all works perfectly now. Thanks everyone for taking the time to lend
assistance.

-----Original Message-----
From: Michael Bartlett 
Sent: 01 August 2003 13:11
To: imp at lists.horde.org
Subject: RE: [imp] From field


Thanks for the response.
I don't appear to have a hooks.php anywhere - could you possibly email me
one? Or is this supplied by some package I may not have?

-----Original Message-----
From: Michael M Slusarz [mailto:slusarz at bigworm.colorado.edu] 
Sent: 31 July 2003 20:49
To: imp at lists.horde.org
Subject: RE: [imp] From field

> Look at the fullname hook (horde/conf/hooks.php)


-- 
IMP mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: imp-unsubscribe at lists.horde.org


More information about the imp mailing list