[imp] Fwd: Could you help me?

Chuck Hagenbuch chuck at horde.org
Wed Apr 16 17:03:35 PDT 2003



----- Forwarded message from rafael at camacho.com.br -----
    Date: Wed, 16 Apr 2003 12:54:52 -0300
    From: Rafael Camacho <rafael at camacho.com.br>
Reply-To: Rafael Camacho <rafael at camacho.com.br>
 Subject: Could you help me?
      To: chuck at horde.org

Hi Chuck,

    Congratulations by IMP, so, I´ve installed the latests version of
IMP and Horde in my home server... I can´t resolve a little problem

    In imp/config/conf.php I have:

    $conf['server']['server_list'] = 'none';

    I want enable the script to get any pop3 accounts....

    Every first login, when you click in compose, de field: Identity
return to me: user at example.com and not user at server.com

    Do you understand me? Can you help me?

    I tried this:
$conf['hooks']['from'] = 'imp_expand_fromaddress';

if (!function_exists('imp_expand_fromaddress')) {
    function imp_expand_fromaddress ($imp) {
        if ($imp['server'] != '.com') {
            return $imp['server'];
        }

        $cmd = '/usr/bin/ph unix=' . escapeShellCmd($imp['user']) . ' |
/bin/grep email | /
usr/bin/awk \'{print $2}\'';
        $name = `$cmd`;
        return (empty($name) ? $imp['user'] : $name);
    }
}

But returns the server in wrong place...

Thanks a lot...

Rafael



----- End forwarded message -----


-chuck

--
Charles Hagenbuch, <chuck at horde.org>
"... It is not more light we need, but more warmth! We die of cold, not of
darkness. It is not the night that kills, but the frost." - Miguel de
Unamuno


More information about the imp mailing list