I am after a database system to store my email messages (over 4 million now) which would allow me to search over emails easily programmatically, so far I only found these two, and alternative is come up with my own schemea and sync the IMAP/Pop3 folders as the emails come in. However reading this : DBMAIL for search seems due to the way dbmail keeps the emails, searching over the emails is not very possible.
My main goal is to be able to read the emails and search through them lets say using python.
Some other alternative choices:
http://sqmail.sourceforge.net/ is written in Python but unsupported since a long time.
http://www.manitou-mail.org/ which is written in Perl (by me!) with an optional GUI in Qt/C++.