I'm thinking about an idea to have a small widget that shows me the last new emails in widget in some intranet.
The idea is when you click on a row of an email that you are redirected to the email itself in roundrube.
Is this an insane idea or doable ?
It is doable, you would need to be logged in to RoundCube at the time you get the emails to display in the widget.
OK thanks!
How would I receive the links to the emails itself ? it's not some sort of query I guess.
You would need to write a plugin that does an IMAP call to get X number of email from the inbox, you may want to check some of the MyRoundCube plugins myroundcube - RoundCube Plugins - Google Project Hosting (http://code.google.com/p/myroundcube/) to get a better feel for the calls.
OK thanks!
I have build some imap check widget in the past, not that difficult. I'm now figuring out how the uid for that mailbox is created. I think it's doable indeed.
Tips are always welcome :)
./program/include/rcube_imap.php
The above class (rcube_imap) contains all methods you may want to use.
In a plugin environment just create an instance of Roundcube by ...
$rcmail = rcmail::get_instance();
Once created, you are able to access all the Roundcube IMAP methods by ...
$ret = $rcmail->imap->[method]([args]);
// process $ret ...
... just a tip ...