[dev] Opening E-Mails via IMP

Sebastian Birnbach birnbacs at gmail.com
Sun Sep 15 09:47:05 UTC 2019


Thanks Michael, that looks promising.

Pardon my ignorance but where do I go from there? The API gives me a
Horde_Imap_Client_Base object which I probably use to get a
Horde_Imap_Client_Mailbox, OK.  But I cannot see how to access a message
from there. What am I missing?

Am Do., 5. Sept. 2019 um 15:28 Uhr schrieb Michael J Rubinsky <
mrubinsk at horde.org>:

>
> Quoting Sebastian Birnbach <birnbacs at gmail.com>:
>
> > In my own Horde file management application I whish to link entries
> > ("dossiers") to E-Mail messages. The idea is to keep a message's UID as a
> > reference in the dossier and open the message for closer inspection upon
> if
> > the user so whishes. I imagine opening a new IMP window with the message,
> > enabling the user to answer, download, forward etc.
> >
> > Is there a way to open an E-Mail message of known UID and mailbox from
> > another Horde application *in IMP* ? I had a look at IMP_Api and find
> > nothing helpful.
>
> Off the top of my head, because of the way IMP caches message
> information, I don't think it's currently possible to open an IMP
> message view window referencing only an IMAP UID via code from another
> application.
>
> Your statement about using IMAP directly needing extra authentication
> isn't exactly correct. You can use IMP_Api::imapOb() to get a
> reference to the Horde_Imap_Client object, already authenticated
> (assuming IMP uses "hordeauth" or the user is already otherwise
> authenticated to IMP).  You can then use the Horde_Imap_Client object
> to fetch what you need to display.
>
>
> > Note: just displaying the message should be feasible using PHP:IMAP but
> > that would require an extra authentication step and is not exactly an
> > integration of applications.
> > --
> > dev mailing list
> > Frequently Asked Questions: http://wiki.horde.org/FAQ
> > To unsubscribe, mail: dev-unsubscribe at lists.horde.org
>
>
>
> --
> mike
> The Horde Project
> http://www.horde.org
> https://www.facebook.com/hordeproject
> https://www.twitter.com/hordeproject
> --
> dev mailing list
> Frequently Asked Questions: http://wiki.horde.org/FAQ
> To unsubscribe, mail: dev-unsubscribe at lists.horde.org
>


More information about the dev mailing list