Vlad,
That sounds pretty cool. I have two questions: If you've bound the interface to the client library, does that mean that a client can connect to it as Jonathan suggests? Or does it mean that the web server can now treat IMAP servers as a data source?
If it's the former, then I think using IMAP folders could also be a pretty good second option for file-storage. Does that sound possible?