conf.php and $imp['user']

Cedric Tardif sysadmin@destination.ca
Tue, 22 Jan 2002 12:05:33 -0500


Hi all,

Finally i got some time to resolve my problem.

The problem i had was a need for me that the username was the username@domain.com for the mail server.

In imp/config/conf.php i found this :

$conf['hooks']['vinfo'] = 'imp_get_vinfo';

Verry interesting but ... with this function the username was send as username_domain_com

So replacing this string : 'return preg_replace('|\.|', '_', $imp['user'] . '_' . $vdomain);'
to this one : 'return preg_replace('|\.|', '.', $imp['user'] . '@' . $vdomain);'
or by : 'return $imp['user']."@".$vdomain;'

Resolved the problem.

Thanks and have a good day !!