[dev] Some functionality and tweaking questions

Scott Singleton scott@beacon-inc.com
Thu, 15 Nov 2001 09:38:43 -0500


Instead of using the username to build the address you can still use the
identity class to find the user.

something like this:

$foo=($identity->getFullName()=='' ? $identity->getFromaddress() :
$identity->getFullName())

If the user doesn't have his full name entered, which is optional, then it's
empty, and the string will return the getFromaddress() which will build the
proper address for the current identity.

-Scott



-----Original Message-----
From: M Z Rahman [mailto:zrahman@partex.net]
Sent: Thursday, November 15, 2001 9:11 AM
To: dev@lists.horde.org
Subject: Re: [dev] Some functionality and tweaking questions


> > $identity->getFullname() can be empty, right? So far I know by default
> > $identity->getFullname() is empty. Users have to enter it manually in
> > their
> > identity. Some users may not want to use identity at all.
> > 
> > But, $imp['user'] and $imp['maildomain'] are never going to be empty,
> > horde is
> > being authenticated by IMP. So, for sure we can show "user@domain" in
IMP
> > or
> 
> That's what I said.
> 
> > anywhere else if Horde is being authenticated by IMP.
> 
> But you can't depend on that.

True. So, we can make it an option in IMP or an option for the
administrators,
can't we?

- Zia


-- 
Horde Developers mailing list: http://horde.org/
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: dev-unsubscribe@lists.horde.org