[imp] imp_expand_fromaddress and identities

Jan Schneider jan at horde.org
Thu May 1 20:45:00 PDT 2003


Zitat von Joshua E Warchol <jwarchol at dsl.net>:

> Jan, I'm afraid this is not the behaviour I'm seeing. You say that the
> value stored in the users identity will override the value returned by
> my hook. I see the hook overriding the identity from address.

This might have changed/been corrected since 3.1.

> When I check the values stored in the identity (from Options), it is
> the correct value. But when I try to Compose, the list of identities show
> the from address my hook returns. The Fullname and all other identity
> preferences (sent-mail, sigs, etc) work just fine.
>
> Has anyone else seen this behaviour with their from address hooks?
>
> Thanks again Jan
>
> On Thu, May 01, 2003 at 05:34:45PM +0200, Jan Schneider wrote:
> > Zitat von Joshua E Warchol <jwarchol at dsl.net>:
> >
> > > I'm using IMP 3.1 and have a quick question about the
> > > $conf['hooks']['from']
> > > hook. In conf.php the note says "If users are allowed to change their
> > > fromaddresses (not fullnames, though), and they have one set, this
> will
> > > be overridden." Does "this" mean the value the user stored in their
> > > identity, or the value I'm returning?
> >
> > The value your hook is returning.
> >
> > > I suspect that my imp_expand_fromaddress() is overriding the users
> > > identity. Does $imp['fromaddress'] contain their current from in the
> > > chossen or default identity?
> >
> > No idea what $imp['fromaddress'] might contain, the correct way to get
> the
> > users from address is to call $identity->getFromAddress()
> >
> > Jan.
>
> --
> Joshua Warchol
> UNIX Systems Administrator
> DSL.net
>
> --
> IMP mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe at lists.horde.org
>
>


Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft


More information about the imp mailing list