[imp] Cyrus "realms" vs IMP "realms"
Marc G. Fournier
scrappy@hub.org
Mon, 2 Sep 2002 01:31:05 -0300 (ADT)
On Sun, 1 Sep 2002, Edwin Culp wrote:
> Have you tried using the imp_get_vinfo() hook and setting back to
> 'realm' >= '', ?
Nope, but am now ... but I'm confused ... the comment states that it will
be used to 'set the $imp['user'] at login time', yet the script uses
$imp['user'], which doesn't appear to have been set yet ...
Else I'm missing somethign ...
For instance, I changed my conf.php file in imp/config to ignore the $type
and set it to what I want:
$conf['hooks']['vinfo'] = 'imp_get_vinfo';
if (!function_exists('imp_get_vinfo')) {
function imp_get_vinfo ($type) {
global $conf, $imp;
$vdomain = getenv('HTTP_HOST');
$vdomain = preg_replace('|^webmail\.|i', '', $vdomain);
$vdomain = strtolower($vdomain);
return $imp['user'] . '@' . $vdomain;
}
}
But when I try to login, it only gets the @$vdomain part:
...mail.pluto.hub.org:143[imap] as @pluto.hub.org ...
So, what value should I be setting in there?