Re: [Dovecot] merging the best of mdbox and sdbox

2011-01-05 Thread Timo Sirainen
In sdbox case there is always only one message per file. It's possible to use filesystem's hard linking feature to copy the file (=the message), because the message contents don't change. In mdbox case there are multiple messages per file. It would again be possible to copy a message by hard li

Re: [Dovecot] merging the best of mdbox and sdbox

2011-01-05 Thread Joan Moreau
Sorry to insist, but the process you describe (copy up to 1GB (why ? I still do not understand) ) is exactly the "sdbox" approach (one file per message in each IMAP subfolder) Let's please spend some more analysis on this. On Thu, 6 Jan 2011 00:45:29 +0200, Timo Sirainen wrote: > With maild

Re: [Dovecot] merging the best of mdbox and sdbox

2011-01-05 Thread Timo Sirainen
With maildir, single-dbox or multi-dbox when you copy a message, just about nothing is read from disk and very little is written to disk. For example in Maildir case a copy is the same as doing: ln ~/Maildir/.source/cur/1234 ~/Maildir/.dest/cur/1234 This only accesses the file's metadata. It wo

Re: [Dovecot] merging the best of mdbox and sdbox

2011-01-05 Thread Joan Moreau
I am not sure I understand why it would be "read entirely", as it is the same as reading a message when accessing a folder and writing a file when a new message in arriving which is the very most common activity of a mail server... so not sure about any "wasteful" I/O Can we spend some mor

Re: [Dovecot] merging the best of mdbox and sdbox

2011-01-05 Thread Timo Sirainen
On 6.1.2011, at 0.11, Joan Moreau wrote: > Is there a way to use the mdbox format (i.e. several message > per files) for EACH IMAP folders (sdbox approach) ? The problem with that is that when copying messages between mailboxes they would have to be actually read and written entirely, rather th

[Dovecot] merging the best of mdbox and sdbox

2011-01-05 Thread Joan Moreau
Hi, Is there a way to use the mdbox format (i.e. several message per files) for EACH IMAP folders (sdbox approach) ? Thanks Joan