Hi,
when creating a copy of a mail, dovecot provides a feature that will 
store its contents only once.  In maildir, this is done by means of hard 
links, while mdbox has some special refcounting mechanism.
My question is, how can we convert mails from maildir to mdbox without 
duplicating these copies?  It seems that dsync does not detect the hard 
links.  Even if the hard-linked mails have the same GUID listed in 
dovecot-uidlist, dsync creates multiple instances of the text.
   - Is there some way to make dsync notice the hard links? (I used
     dovecot 2.0.17)
   - Alternatively, is there some tool to deduplicate the mdbox after it
     has been converted from maildir?
   - NB: I am not talking about single-instance storage for attachments.
Thank you very much,
Christoph
-- 
Christoph Bu?enius
Rechnerbetriebsgruppe der Fakult?ten Informatik und Mathematik
Technische Universit?t M?nchen
+49 89-289-18519 <> Raum 00.05.055 <> Boltzmannstr. 3 <>
Garching
On 13.2.2012, at 16.16, Christoph Bu?enius wrote:> when creating a copy of a mail, dovecot provides a feature that will store its contents only once. In maildir, this is done by means of hard links, while mdbox has some special refcounting mechanism. > > My question is, how can we convert mails from maildir to mdbox without duplicating these copies? It seems that dsync does not detect the hard links. Even if the hard-linked mails have the same GUID listed in dovecot-uidlist, dsync creates multiple instances of the text. > - Is there some way to make dsync notice the hard links? (I used > dovecot 2.0.17)It should deduplicate when GUIDs are the same.. I guess I'll have to look into why it's not working.
Possibly Parallel Threads
- doveadm fetch prints duplicate results in 2.1
- [PATCH] Pop3 order in courier migration script
- Shared folders not shown if "INBOX.shared.%.%" is used with dovecot 2.1.10
- Dovecot allows creation of folders outside of a user's directory
- [PATCH] Bad boundary check in client_find_namespace