[imp] adding default domain to addresses that don't expand?

Chuck Hagenbuch chuck@horde.org
Tue, 20 Aug 2002 16:00:31 -0400


Quoting Liam Hoekenga <liamr@umich.edu>:

> Ok, I've got this mostly working.  The one problem I'm having is what
> seems to by my perpetual problem - trying to accesses out of scope 
> variables.
> 
> The code I've written is an addition tohorde/imp/expand.php, and I need
> access to $imp['maildomain'].   I can't access it there or with
> $GLOBALS['imp']['maildomain'] (I get an "undefined index: imp" error in
> my php logfile).  I can, however, query
> $conf['msg']['add_maildomain_to_unexpandable']
> (from horde/imp/config/conf.php - I'm completely open to a shorter
> preference name, but I wanted something descriptive).
> 
> Do I need to do some sort of globals declaration, or include/require some
> file?

Try $_SESSION['imp']['maildomain'].

-chuck

--
Charles Hagenbuch, <chuck@horde.org>
"After a few minutes the most aromatic and nice smelling Italian coffee 
 will come out of the exhaustpipe." - Our stove-top espresso pot