autopopulating default identity

Liam Hoekenga liamr@umich.edu
Mon, 28 Jan 2002 12:00:51 -0500


Does imp/config/prefs have access to the rest of the Horde/IMP variable
namespace?
 
I'd like to set $_prefs['from_addr']['value'] to

    $imp['user'] . '@' . $imp['maildomain'], but I get

[28-Jan-2002 11:47:05] PHP Warning:  Undefined variable:  imp in
/usr/local/projects/webmail/html-ssl/horde/imp/config/prefs.php on line 208

so currently I've got it set to 

    $GLOBALS['HTTP_SERVER_VARS']['REMOTE_USER'] .'@umich.edu'

I tried doing something with $conf['hooks']['from_addr'], but that only
seems to set the address on the actual outbound mail, not the from address in an
identity.  It would be cool if you could use the runtime hooks defined in
conf.php in prefs.php to help populate the default identity.

Liam