[imp] (no subject)

Kevin Myer kevin_myer at iu13.org
Mon Jun 20 16:12:51 PDT 2005


You're going to have to cover a couple of things:

1)  Setting the 'from_addr' value, which can be done with a hook, that 
checks to
see if the username contains a '@' sign, and if not, write some code to return
a full email address that includes the domain that is submitted from the login
page.

In horde/config/prefs.php

$_prefs['from_addr'] = array(
    'value' => '',
    'locked' => true,
    'shared' => true,
    'type' => 'text',
    'hook' => 'true',
    'desc' =>  _("Your From: address:")
);

In horde/config/hooks.php, find the '_prefs_hook_from_addr' function, 
uncomment
it, and replace the existing code with some that appends the domain if its not
a full-blow email address.

2) For preferences, to make sure you don't have collisions between users, make
sure you set '_username_hook_frombackend' so that if you have 
user1 at domain1 and
user1 at domain2, their preferences are saved with a userid that includes the
domain.  If they both login as user1, with no domain in the login, they're
going to clobber each other's preferences.

Also, are you providing the mail hosting to them?  If so, make sure you 
set the
appropriate configuration options so that the username they login with is
passed properly to the mail server.  If you are using fully qualified email
addresses for account names, you'll want to make sure that you set 
hordeauth ->
full in imp/config/servers.php.  If you aren't,  you'll probably want to set
hordeauth -> true, which will just use whatever is to the left of the @ sign.

It's always good to understand what the legacy system had customized, before
upgrading it ;)

Kevin

-- 
Kevin M. Myer
Senior Systems Administrator
Lancaster-Lebanon Intermediate Unit 13  http://www.iu13.org




More information about the imp mailing list