mstor is a java open source project for handling mail
Summary
Taken from http://wiki.modularity.net.au/mstor/index.php?title=Main_Page
Mstor is a JavaMail provider for persistent email storage. Currently mstor provides support for the following persistent storage:
- mbox - through the use of the Java New I/O API, mstor aims to provide a scalable email storage solution that can support large mailboxes.
- Java Content Repository (JCR)
For more information check out the API Documentation at http://m2.modularity.net.au/projects/mstor/apidocs/.