[imp] imap/smtp server variable
Jon Parise
jon@csh.rit.edu
Wed, 20 Jun 2001 17:43:08 -0400
On Wed, Jun 20, 2001 at 03:43:15PM -0400, Cliff Green wrote:
> Using:
> horde 1.3.4-cvs
This should be 1.3.5-cvs now.
> Is $imp['server'] a global variable set when one logs on to imp? How about
> $GLOBALS['HTTP_SESSION_VARS'['imp']['server']?
It depends on whether the global $imp variable has been imported
into the local namespace. For the most part, they're the same
variable addressed two different ways, but you can't gurantantee
that $imp will always be in scope.
> What I'd like to do in imp/config/conf.php is something like:
>
> $conf['mailer']['params']['host'] = $imp['server'];
I'm not sure that will always work. The conf.php file is sourced
before the session is started, so $imp won't contain any useful
values at that point.
--
Jon Parise (jon@csh.rit.edu) . Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/ : Computer Science House Member