[imp] Imp Inbox display on portal page

Karsten Fourmont fourmont at gmx.de
Sun Feb 11 22:09:53 PST 2007


Hi,

I'd like my portal page to contain my current inbox. So I have my mail, 
tasks and upcoming events all at one glance.

I don't know if this has already been discussed, for me it looks like an 
rather obvious requirement.

As a proof of concept I created a block example. It's rather ugly code: 
I just took imp/mailbox.php, threw out some unneeded stuff and enclosed 
it in an ob_start() / ob_end_clean.

It's far from perfect but it gives you an idea of what I mean. See the 
screenshot at http://www.fourmont.org/tmp/FolderSummaryPortal.png.

A "real" implementation should be done by moving the contents of 
imp/mailbox.php to a function in lib/ and then use this by both 
imp/mailbox.php and Block/mailbox.php.

However I really don't know enough about imp to do this on my own.

Ideas, suggestions?

The code I used can be found here:
http://www.fourmont.org/tmp/mailbox.php.txt
Save it to imp/lib/Block/mailbox.php to get an idea. (Note: the hide 
column features doesn't work atm)

Cheers,
  Karsten



More information about the imp mailing list