The Yukatan webmail system is based on a relational database acting as the email message storage. The idea is to get rid of the (IMHO) badly outdated mailbox formats and utilize the power of a relational database backend.
This page documents the development of the Yukatan data model expressed as an SQL schema. The database tool of choise is PostgreSQL, but the data model should be easy to port to other database systems.