Re: [Dovecot] (Single instance) attachment storage with single-dbox

2010-10-19 Thread Timo Sirainen
On Tue, 2010-10-19 at 17:28 +0100, Timo Sirainen wrote: > > But .. I suppose it could be possible to use a combination of attachment-id > > + mailbox GUID + message UID number. I'll have to think about it.. > > Implemented. Oh, forgot to say: Now attachments won't get lost if you replace hard l

Re: [Dovecot] (Single instance) attachment storage with single-dbox

2010-10-19 Thread Timo Sirainen
On Sat, 2010-09-25 at 13:34 +0100, Timo Sirainen wrote: > But .. I suppose it could be possible to use a combination of attachment-id + > mailbox GUID + message UID number. I'll have to think about it.. Implemented. Although saving messages now requires an extra rename(). It should be possible t

Re: [Dovecot] (Single instance) attachment storage with single-dbox

2010-09-25 Thread Timo Sirainen
On 25.9.2010, at 11.50, William Blunn wrote: >> I can't think of any other reasonable way to handle this though, so unless >> someon has some great ideas, I think the solution is to simply >> add enough warnings that message store shouldn't be accessed directly. Maybe >> add some import/export c

Re: [Dovecot] (Single instance) attachment storage with single-dbox

2010-09-25 Thread Timo Sirainen
On 25.9.2010, at 9.49, Daniel L. Miller wrote: > On 9/24/2010 11:57 AM, Timo Sirainen wrote: >> Just a note to myself and whoever else cares, should be added to wiki >> once it has its own page about this: >> >> With single-dbox messages can be copied with hard linking. This means >> that there c

Re: [Dovecot] (Single instance) attachment storage with single-dbox

2010-09-25 Thread William Blunn
On 24/09/2010 19:57, Timo Sirainen wrote: Just a note to myself and whoever else cares, should be added to wiki once it has its own page about this: I have been meaning to say we should have a wiki page about this. With single-dbox messages can be copied with hard linking. This means tha

Re: [Dovecot] (Single instance) attachment storage with single-dbox

2010-09-25 Thread Daniel L. Miller
On 9/24/2010 11:57 AM, Timo Sirainen wrote: Just a note to myself and whoever else cares, should be added to wiki once it has its own page about this: With single-dbox messages can be copied with hard linking. This means that there can be multiple files that point to the same attachment file. T

Re: [Dovecot] (Single instance) attachment storage with single-dbox

2010-09-24 Thread Charles Marcus
On 2010-09-24 2:57 PM, Timo Sirainen wrote: > Maybe add some import/export commands to doveadm which can be used to > add a bunch of mails to storage without doing it directly on filesystem. +1 I've always just used cp -rp to restore mail, so yeah, if that would break SiS, I agree there should be

[Dovecot] (Single instance) attachment storage with single-dbox

2010-09-24 Thread Timo Sirainen
Just a note to myself and whoever else cares, should be added to wiki once it has its own page about this: With single-dbox messages can be copied with hard linking. This means that there can be multiple files that point to the same attachment file. The attachment is now deleted only once the mail