Re: Dovecot and hard links?

2019-08-18 Thread @lbutlr via dovecot
On 16 Aug 19, at 16:57 , @lbutlr wrote: > Ack. I checked the junk folder and there are 379 files in there with 379 > links! It appears the main culprit is actually the sieve script that is supposed to mark messages moved out of the Junk box as ham. Somehow it was getting itself stuck and

Re: Dovecot and hard links?

2019-08-18 Thread Aki Tuomi via dovecot
> On 17/08/2019 21:27 @lbutlr via dovecot wrote: > > > On 17 Aug 19, at 10:14 , Timo Sirainen wrote: > > Hard links are created when a mail is copied with the IMAP COPY command. So > > Dovecot just does what the client asks it to do. Maybe you have some > > misbehaving IMAP client? > >

Re: Dovecot and hard links?

2019-08-17 Thread @lbutlr via dovecot
On 17 Aug 19, at 10:14 , Timo Sirainen wrote: > Hard links are created when a mail is copied with the IMAP COPY command. So > Dovecot just does what the client asks it to do. Maybe you have some > misbehaving IMAP client? Maybe. Heck, I’ll grant probably, even. But what do I do about it? How

Re: Dovecot and hard links?

2019-08-17 Thread Timo Sirainen via dovecot
On 17 Aug 2019, at 1.57, @lbutlr via dovecot wrote: > > On 16 Aug 19, at 07:33 , @lbutlr wrote: >> I was looking at a mail folder and I noted that a file in the inbox had a >> total of 11 hard links to it: > > Ack. I checked the junk folder and there are 379 files in there with 379 > links!

Re: Dovecot and hard links?

2019-08-16 Thread @lbutlr via dovecot
On 16 Aug 19, at 07:33 , @lbutlr wrote: > I was looking at a mail folder and I noted that a file in the inbox had a > total of 11 hard links to it: Ack. I checked the junk folder and there are 379 files in there with 379 links! Since they were all in jink I just deleted them all, but that

Dovecot and hard links?

2019-08-16 Thread @lbutlr via dovecot
I was looking at a mail folder and I noted that a file in the inbox had a total of 11 hard links to it:  # exa -lH cur/1564249738.M167990P53982.mail.covisp.net,S=8572,W=8738:2,Sgl .rw--- 11 8.6k vpopmail 19 Jul 19:59 cur/1564249738.M167990P53982.mail.covisp.net,S=8572,W=8738:2,Sgl  #

Re: [Dovecot] dsync, hard-links and refcounts

2012-02-21 Thread Christoph Bußenius
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

Re: [Dovecot] dsync, hard-links and refcounts

2012-02-21 Thread Timo Sirainen
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

Re: [Dovecot] dsync, hard-links and refcounts

2012-02-21 Thread Christoph Bußenius
On 21.02.2012 12:04, Timo Sirainen wrote: 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

Re: [Dovecot] dsync, hard-links and refcounts

2012-02-21 Thread Timo Sirainen
On 21.2.2012, at 13.55, Christoph Bußenius wrote: Apart from the waste of space, I was wondering: Is it okay for an mdbox to have several duplicate instances of a message with the same GUID? Might some kind of corruption arise from this? No corruption. And they might even become

Re: [Dovecot] dsync, hard-links and refcounts

2012-02-21 Thread Christoph Bußenius
On 21.02.2012 13:15, Timo Sirainen wrote: And they might even become deduplicated if you do doveadm force-resync + purge. I hadn't tried that yet. Thanks for the hint, this is probably all we need. Cheers, Christoph -- Christoph Bußenius Rechnerbetriebsgruppe der Fakultäten Informatik und

Re: [Dovecot] dsync, hard-links and refcounts

2012-02-20 Thread Christoph Bußenius
On 15.02.2012 04:46, Timo Sirainen wrote: On 13.2.2012, at 16.40, Timo Sirainen wrote: It should deduplicate when GUIDs are the same.. I guess I'll have to look into why it's not working. The attached patch fixes it. I'll commit it to v2.1 hg after I'll release v2.1.0.. After replacing

Re: [Dovecot] dsync, hard-links and refcounts

2012-02-15 Thread Christoph Bußenius
On 15.02.2012 04:46, Timo Sirainen wrote: The attached patch fixes it. I'll commit it to v2.1 hg after I'll release v2.1.0.. Thanks. I guess it would be wise to upgrade our new Dovecot mail store to 2.1 before we migrate all our Courier maildir users to it... Cheers, Chnristoph --

Re: [Dovecot] dsync, hard-links and refcounts

2012-02-14 Thread Timo Sirainen
. - 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. It worked when the GUID already existed somewhere in destination, but not if it was added only during the same session

[Dovecot] dsync, hard-links and refcounts

2012-02-13 Thread Christoph Bußenius
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

Re: [Dovecot] dsync, hard-links and refcounts

2012-02-13 Thread Timo Sirainen
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

Re: [Dovecot] dsync, hard-links and refcounts

2012-02-13 Thread Christoph Bußenius
On 02/13/2012 03:40 PM, Timo Sirainen wrote: It should deduplicate when GUIDs are the same.. I guess I'll have to look into why it's not working. I’d very much appreciate that. We will have to migrate many large mailboxes, and it would be a pity to needlessly waste space. I got the same