[imp] drop down the virtualdomains

Luciano Bello lbello at sistemas.frba.utn.edu.ar
Wed Mar 31 06:27:09 PST 2004


Exactly!

but... don't work... :(

here is my configuration:

in horde/imp/config/conf.php
$conf['server']['server_list'] = 'shown';

in horde/imp/config/servers.php
# I have tree vdomains: escuelas.edu.ar
#                       uct.inet.edu.ar
#                       cenet.inet.edu.ar
$servers['escuelas'] = array(
    'name' => 'escuelas.edu.ar',
    'server' => 'correo.escuelas.edu.ar',
    'protocol' => 'imap/notls',
    'port' => 143,
    'folders' => 'INBOX',
    'namespace' => '',
    'maildomain' => 'escuelas.edu.ar',
    'smtphost' => 'correo.escuelas.edu.ar',
    'realm' => '',
    'preferred' => ''
);

$servers['uct'] = array(
    'name' => 'uct.inet.edu.ar',
    'server' => 'correo.escuelas.edu.ar',
    'protocol' => 'imap/notls',
    'port' => 143,
    'folders' => 'INBOX',
    'namespace' => '',
    'maildomain' => 'uct.inet.edu.ar',
    'smtphost' => 'correo.inet.edu.ar',
    'realm' => '',
    'preferred' => ''
);

in horde/imp/config/conf.php
$conf['hooks']['vinfo'] = 'imp_get_vinfo';
 if (!function_exists('imp_get_vinfo')) {
     function imp_get_vinfo ($type = 'username') {
         global $conf;

         $vdomain = getenv('HTTP_HOST');
# I changed 'mail' for  correo
         $vdomain = preg_replace('|^correo\.|i', '', $vdomain);
         $vdomain = strtolower($vdomain);

         if ($type == 'username') {
             return preg_replace('|\.|', '_', $_SESSION['imp']['user'] .
'_' . $vdomain);
         } elseif ($type == "vdomain") {
             return $vdomain;
         } else {
             return new PEAR_Error('invalid type: ' . $type);
         }
     }
 }


But not work. :( May be I do something wrong

Other problem... no  drop down to select de vdomanin... Horde take it
from de URL.... but it's not a big problem.

Thanks for your help!

Luciano

PD: My english is terrible... sorry
El mar, 30-03-2004 a las 12:24, Jan Schneider escribió:
> Zitat von Luciano Bello <lbello at sistemas.frba.utn.edu.ar>:
> 
> > Hi!
> >    I'm from Argentine, and I installed IMP en my
> > Qmail/Vpopmail/Courier-IMAP. The URL is:
> > http://correo.escuelas.edu.ar/horde
> >
> > I'have others domains, and vchkpwd (auth for vpopmail and courier) needs
> > the entire email address for username.
> > Ex: in Username, you must type the emailaddress instead of
> > what-is-before- at .
> >
> > But, may be, some of you "programing" some modification for do that,
> > like a drop down box for each virtualdomain and append it to
> > what-is-before- at .
> 
> If I understand you correctly, you want to add all domains to
> imp/config/servers.php, set the server list in imp/config/conf.php to
> "shown" and use the vinfo hook in conf.php to add the domain to the
> username.
> 
> Jan.
> 
> --
> http://www.horde.org - The Horde Project
> http://www.ammma.de - Neue Wege des Lernens
> http://www.tip4all.de - Deine private Tippgemeinschaft
> -- 
> IMP mailing list - Join the hunt: http://horde.org/bounties/#imp
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
> 




More information about the imp mailing list