[imp] Customizing IMP Interface

Crispin Olson colson at rdemail.com
Tue May 6 16:30:40 PDT 2003


Quoting: "eltonic40" <eltonic40 at ecotech.com.lr>
> Any hint on customizing the login so that given the domain, the login
> page supplies the appropriate domain part of the user name?

Scroll up that conf.php file a bit, and look at the function hook -
['hooks']['vinfo'].
Set this to imp_get_vinfo, -
$conf['hooks']['vinfo'] = 'imp_get_vinfo';

imp_get_vinfo is the name of the function that will supply either the
domain name (after the @ sign) if $type is passed as 'vdomain', or the
whole user if  $type is passed as 'username'. Note that this is what is
passed to your imap server as the username.

Uncomment the imp_get_vinfo function underneath - it should work as is

Good Luck!

Crispin



More information about the imp mailing list