News for hackers. Stuff that matters.
Re:"mbox" is a family of several mutually incompatible mailb... by mike-cardwell on Sunday January 08, 2012 @10:24AM (#3439694)
I think the best system would be one inbetween mbox and maildir. You specify a filesize limit of say "10MB". Emails are repeatedly added to the same file, until it hits 10MB, then a new file is created. Emails larger than 10MB would not be split over multiple files. An index is kept of all of the messages. When a message is deleted, rather than immediately removing it from the file and blocking like most mbox implementations work, it should just be flagged as deleted in the index. A background process can clean up these messages when the file is not in use.
Re:"mbox" is a family of several mutually incompatible mailb... by JoshTriplett on Sunday January 08, 2012 @02:47PM (#3440323)
Seems like in such a system you've gone to a lot of work to recreate the purpose of a filesystem: to keep the data of different files separate from each other. Why do you want to keep emails together in 10MB chunks?
Re:"mbox" is a family of several mutually incompatible mailb... by mike-cardwell on Monday January 09, 2012 @07:55AM (#3442322)
To address the limited inode issue
Re:"mbox" is a family of several mutually incompatible mailb... by ams6110 on Sunday January 08, 2012 @11:12AM (#3439798)
What you describe is essentially a database for email. You might have a look at http://www.dbmail.org/
Re:"mbox" is a family of several mutually incompatible mailb... by mike-cardwell on Sunday January 08, 2012 @11:21AM (#3439823)
This is true. Maildir and mbox are also essentially databases for email.
Re:"mbox" is a family of several mutually incompatible mailb... by ams6110 on Sunday January 08, 2012 @12:01PM (#3439920)
OK. Maybe I should have said DBMS? I'm speaking specifically about the management of the back-end storage files, e.g. splitting storage over multiple size-limited files, tracking and re-using free space, etc. are all things that DBMSs provide, without a need to reinvent such things for the purposes of storing email.

If there's a better term to describe this I'd be glad to learn it.