Xan wrote:
It's certainly faster than mbox format, which crams every folder's email into an enormous file.
It's more efficient than maildir because maildir creates a file for every email, cluttering your filesystem with a billion tiny files.
I'd imagine it must be orders of magnitude faster for something like searching, since you don't have to parse either the huge files or read a billion tiny ones. It's ideal for a database; let the program that's designed to handle things like this do its work.
MS Exchange deals with email in this fashion, with a database, and that enables it to handle them very efficiently. That and calendaring are its main advantages over OSS, although with postfix-mysql it may just be the calendaring.
Heh. "MS Exchange" and "efficient" are two words that really don't belong in the same sentence. Also MS Exchange's calendaring is the worst, most braindead, most broken thing I have ever seen to come out of Redmond, and that's saying quite a lot.
Your filesystem is a type of database. Maildir uses it quite efficiently. A billion files are easier to deal with using standard Unix tools than a database.
I think it's fine to store your mail in a relational database if that's what you want to do, but there's no reason to knock Maildir. It works very well.