[imp] IMP 3.0 checking for IMAP server on LDAP
Jorge Izquierdo
jizquierdo@sgi.es
Wed, 06 Mar 2002 09:58:52 +0100
eculp@encontacto.net wrote:
> I'm not sure that I understand the question, Jorge. You can always "pi=
rate"
> the code from horde/imp/config/conf.php and modify it to your needs or =
just
> uncomment it add the name of the function and use it as documented. It=
is
> actually applied in login.inc if my memory serves me right.
> The following code from that file may do what you are after.
>
> $vdomain = getenv('HTTP_HOST');
> $vdomain = preg_replace('|^mail\.|i', '', $vdomain);
> $vdomain = strtolower($vdomain);
>
> If this isn't what you are looking for an explanation of what you can't
> get to work or what you want to do specifically would help.
>
> provecho y suerte,
I´m newbie with PHP code, but I think that the lines above are trying to set a
variable ($vdomain) with the value of the virtual domain for eahc user to log in
the system. But the question is: what´s the wat IMP uses this value to connect to
an IMAP server or another? I mean, the get_vinfo function return this variable, but
how does IMP uses this to set the server to connect to? Is this posible to set in
the get_vinfo function the value of the variable which sets the IMAP server? which
one is the variable?
Thanks for your attention.
Jorge
--
----------------------------------------------------------
Jorge Izquierdo Alonso
e-mail: jizquierdo@sgi.es
Tfn: +34 91 806 16 00 (switchboard)
Fax: +34 91 806 16 99
SGI Soluciones Globales Internet
C/Isaac Newton nº 11
28760 Tres Cantos, Madrid
http://www.sgi.es
>From jrkuipers@lauwerscollege.nl Date: Wed, 6 Mar 2002 10:10:11 +0100
Return-Path: <jrkuipers@lauwerscollege.nl>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 78326 invoked from network); 6 Mar 2002 09:10:44 -0000
Received: from c3207.upc-c.chello.nl (HELO linux.lauwerscollege.nl) (212.187.3.207)
by clark.horde.org with SMTP; 6 Mar 2002 09:10:44 -0000
Received: (from www@localhost)
by linux.lauwerscollege.nl (8.11.6/8.11.6) id g269ABI17938
for imp@lists.horde.org; Wed, 6 Mar 2002 10:10:11 +0100
Received: from 213.127.81.224 ( [213.127.81.224])
as user jrkuipers@localhost by webmail.lauwerscollege.nl with HTTP;
Wed, 6 Mar 2002 10:10:11 +0100
Message-ID: <1015405811.3c85dcf3be91d@webmail.lauwerscollege.nl>
Date: Wed, 6 Mar 2002 10:10:11 +0100
From: Jan Kuipers <jrkuipers@lauwerscollege.nl>
To: imp@lists.horde.org
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
Subject: JS error with addressbook popup
Hello,
Regarding HEAD branch
I get a javascript error ("This window should be called from the composewindow"
)with the new addressbook popup, when I'm _not_ composing in a separate window.
--
Jan Kuipers
Systeembeheer Lauwers College
>From jrkuipers@lauwerscollege.nl Date: Wed, 6 Mar 2002 10:14:59 +0100
Return-Path: <jrkuipers@lauwerscollege.nl>
Mailing-List: contact imp-help@lists.horde.org; run by ezmlm
Delivered-To: mailing list imp@lists.horde.org
Received: (qmail 79443 invoked from network); 6 Mar 2002 09:15:32 -0000
Received: from c3207.upc-c.chello.nl (HELO linux.lauwerscollege.nl) (212.187.3.207)
by clark.horde.org with SMTP; 6 Mar 2002 09:15:32 -0000
Received: (from www@localhost)
by linux.lauwerscollege.nl (8.11.6/8.11.6) id g269F0717997
for imp@lists.horde.org; Wed, 6 Mar 2002 10:15:00 +0100
Received: from 213.127.81.224 ( [213.127.81.224])
as user jrkuipers@localhost by webmail.lauwerscollege.nl with HTTP;
Wed, 6 Mar 2002 10:14:59 +0100
Message-ID: <1015406099.3c85de13e1572@webmail.lauwerscollege.nl>
Date: Wed, 6 Mar 2002 10:14:59 +0100
From: Jan Kuipers <jrkuipers@lauwerscollege.nl>
To: imp@lists.horde.org
References: <1015405811.3c85dcf3be91d@webmail.lauwerscollege.nl>
In-Reply-To: <1015405811.3c85dcf3be91d@webmail.lauwerscollege.nl>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: Internet Messaging Program (IMP) 4.0-cvs
Subject: Re: [imp] JS error with addressbook popup
Citeren Jan Kuipers <jrkuipers@lauwerscollege.nl>:
> I get a javascript error ("This window should be called from the
> composewindow"
> )with the new addressbook popup, when I'm _not_ composing in a separate
> window.
After looking at the code, this seems normal behaviour, but why is this?
--
Jan Kuipers
Systeembeheer Lauwers College