[Dovecot] dsync, hard-links and refcounts

Timo Sirainen tss at iki.fi
Tue Feb 21 13:04:25 EET 2012


On Tue, 2012-02-21 at 11:23 +0100, Christoph Bußenius wrote:
> Hi,
> 
> On 15.02.2012 04:46, Timo Sirainen wrote:
> >
> > It worked when the GUID already existed somewhere in destination, but not if it was added only during the same session. The attached patch fixes it. I'll commit it to v2.1 hg after I'll release v2.1.0..
> 
> sorry to bother you again, but I think there is a problem with this patch:
> 
> If a maildir contains several copies of the same message all in the same 
> folder, dsync will not deduplicate them.

Correct. I nearly finished implementing this also, but then I thought it
just makes the code unnecessarily complex for no good reason.

> While IMAP cannot directly create copies of a message in the same 
> folder, 

It can: SELECT INBOX, COPY 1 INBOX

> it does still happen if you copy (or move) a message back and 
> forth between two folders.

Is it common enough to be an actual problem?




More information about the dovecot mailing list