[dev] Questions about using IMP authentication

Jan Schneider jan at horde.org
Tue Aug 17 13:47:39 PDT 2004


Zitat von Josh Endries <josh at endries.org>:

> Hello,
>
> I need to write a module that interacts with our IMAP server. I
> currently have the module working, but users need to log in a second
> time, to my module, after logging into Horde (which uses IMP for
> authentication). I'm wondering if anyone can give me some pointers on
> how to integrate/use IMP's pre-existing authentication and/or IMAP
> connection information within my module. All I really need is to talk
> to the IMAP server as the user that is logged in (send commands and
> receive output). The server I'm testing/writing this for uses the CVS
> version of Horde+IMP, in case there are differences in how I can
> achieve this between stable and CVS.

Use the getStream method of IMP's API. Something like
$stream = &$registry->call('mail/getStream')

Jan.

--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting.php


More information about the dev mailing list