[Dovecot] possible quota bug ?
Hi,
I'm using dovecot 2.2.5 with quota (maildir backend), zlib and expunge plugins.
When I list maildirsize file, I get:
1073741824S 17952 16
If I receive a new message (example: 1204 bytes compressed and 2524 bytes plain text), the quota file is write correctly (2524 1 entry). When I move the message to trash folder (or between user custom folders) the file have wrong entries:
1073741824S 17952 16 2524 1 1204 1 (this is the size of the compressed message) -2524 -1
I coudn't find any relation with the config settings causing this problem and checked the changelog since 2.2.5. Had someone had this same problem?
Thanks, Fernando
I was researching deeper this issue, activated debug logs and when I move a message from one folder to another the message size is different
Jan 30 18:48:07 imap(xxx@xxx): Info: copy from INBOX: box=INBOX.Sent, uid=17, msgid=<5520ed0fedee4e3386d08c98d249ad31@lab.imap>, size=1048 Jan 30 18:48:07 imap(xxx@xxx): Info: expunge: box=INBOX, uid=3, msgid=<5520ed0fedee4e3386d08c98d249ad31@lab.imap>, size=1898
This is exactly the sizes I see in the maildirsize. But I think these values should be equals.
1073741824S
2136 1
1048 1
-1898 -1
Att Fernando
De: fernando.figaro@uol.com.br Enviada: Quarta-feira, 15 de Janeiro de 2014 15:11 Para: dovecot@dovecot.org Assunto: [Dovecot] possible quota bug ?
Hi,
I'm using dovecot 2.2.5 with quota (maildir backend), zlib and expunge plugins.
When I list maildirsize file, I get:
1073741824S 17952 16
If I receive a new message (example: 1204 bytes compressed and 2524 bytes plain text), the quota file is write correctly (2524 1 entry). When I move the message to trash folder (or between user custom folders) the file have wrong entries:
1073741824S 17952 16 2524 1 1204 1 (this is the size of the compressed message) -2524 -1
I coudn't find any relation with the config settings causing this problem and checked the changelog since 2.2.5. Had someone had this same problem?
Thanks, Fernando
On 30.1.2014, at 16.30, fernando.figaro@uol.com.br wrote:
I was researching deeper this issue, activated debug logs and when I move a message from one folder to another the message size is different
Jan 30 18:48:07 imap(xxx@xxx): Info: copy from INBOX: box=INBOX.Sent, uid=17, msgid=<5520ed0fedee4e3386d08c98d249ad31@lab.imap>, size=1048 Jan 30 18:48:07 imap(xxx@xxx): Info: expunge: box=INBOX, uid=3, msgid=<5520ed0fedee4e3386d08c98d249ad31@lab.imap>, size=1898
This is exactly the sizes I see in the maildirsize. But I think these values should be equals.
Yes, they should be equal. I don't know why they wouldn't be. Do your Maildir filenames contain the S=1898 (i.e. the uncompressed size)? Are you delivering mails via Dovecot LDA/LMTP?
1073741824S 2136 1 1048 1
-1898 -1Att Fernando
De: fernando.figaro@uol.com.br Enviada: Quarta-feira, 15 de Janeiro de 2014 15:11 Para: dovecot@dovecot.org Assunto: [Dovecot] possible quota bug ?
Hi,
I'm using dovecot 2.2.5 with quota (maildir backend), zlib and expunge plugins.
When I list maildirsize file, I get:
1073741824S 17952 16
If I receive a new message (example: 1204 bytes compressed and 2524 bytes plain text), the quota file is write correctly (2524 1 entry). When I move the message to trash folder (or between user custom folders) the file have wrong entries:
1073741824S 17952 16 2524 1 1204 1 (this is the size of the compressed message) -2524 -1
I coudn't find any relation with the config settings causing this problem and checked the changelog since 2.2.5. Had someone had this same problem?
Thanks, Fernando
Hi Timo,
I'm posting more info about this issue:
Sent a message from gmail, delivered via lmtp/lda/sieve
-rw------- 1 vmail vmail 1187 Feb 9 15:14 1391966051.M730051P32575.LAB-STO-V-01,S=2392,W=2440
The message was compressed (gz)
Maildirsize: 1073741824S 51505 31 2392 1
Move message from INBOX to TRASH
Feb 9 15:15:45 LAB-LMB-V-01 dovecot: imap(xxx): copy from INBOX: box=INBOX.Trash, uid=27, msgid=<CAB=TBLwMfSBGWSQ-W6H6VLmkXvEiK66am=bOseH=SUDGiGHaHw@mail.gmail.com>, size=1187 Feb 9 15:15:45 LAB-LMB-V-01 dovecot: imap(xxx): expunge: box=INBOX, uid=32, msgid=<CAB=TBLwMfSBGWSQ-W6H6VLmkXvEiK66am=bOseH=SUDGiGHaHw@mail.gmail.com>, size=2392
Maildirsize: 1073741824S 51505 31 2392 1 1187 1 -2392 -1
De: tss@iki.fi Enviada: Sexta-feira, 7 de Fevereiro de 2014 15:07 Para: dovecot@dovecot.org Assunto: [Dovecot] possible quota bug ?
On 30.1.2014, at 16.30, fernando.figaro@uol.com.br wrote:
I was researching deeper this issue, activated debug logs and when I move a message from one folder to another the message size is different
Jan 30 18:48:07 imap(xxx@xxx): Info: copy from INBOX: box=INBOX.Sent, uid=17, msgid=<5520ed0fedee4e3386d08c98d249ad31@lab.imap>, size=1048 Jan 30 18:48:07 imap(xxx@xxx): Info: expunge: box=INBOX, uid=3, msgid=<5520ed0fedee4e3386d08c98d249ad31@lab.imap>, size=1898
This is exactly the sizes I see in the maildirsize. But I think these values should be equals.
Yes, they should be equal. I don't know why they wouldn't be. Do your Maildir filenames contain the S=1898 (i.e. the uncompressed size)? Are you delivering mails via Dovecot LDA/LMTP?
1073741824S 2136 1 1048 1 -1898 -1
Att Fernando
De: fernando.figaro@uol.com.br Enviada: Quarta-feira, 15 de Janeiro de 2014 15:11 Para: dovecot@dovecot.org Assunto: [Dovecot] possible quota bug ?
Hi,
I'm using dovecot 2.2.5 with quota (maildir backend), zlib and expunge plugins.
When I list maildirsize file, I get:
1073741824S 17952 16
If I receive a new message (example: 1204 bytes compressed and 2524 bytes plain text), the quota file is write correctly (2524 1 entry). When I move the message to trash folder (or between user custom folders) the file have wrong entries:
1073741824S 17952 16 2524 1 1204 1 (this is the size of the compressed message) -2524 -1
I coudn't find any relation with the config settings causing this problem and checked the changelog since 2.2.5. Had someone had this same problem?
Thanks, Fernando
Le Sun, 09 Feb 2014 15:32:48 -0200 fernando.figaro@uol.com.br écrit:
Hi, no solution just a confirmation of the bug. lz4 compression here.
Clean maildir directory generated with 'doveadm backup'. So S=..,W=.. are correct.
Moving this mail file from inbox to trash: -rw------- 1 maildir maildir 5165 Mar 13 17:01 1394726488.M954102P27201.dev-nc-pxe.sdv.fr,S=7590,W=7640:2,Sa
# cat maildirsize 12582910S,30C 108394 10 5165 1 -7590 -1
Hi Timo,
I'm posting more info about this issue:
Sent a message from gmail, delivered via lmtp/lda/sieve
-rw------- 1 vmail vmail 1187 Feb 9 15:14 1391966051.M730051P32575.LAB-STO-V-01,S=2392,W=2440
The message was compressed (gz)
Maildirsize: 1073741824S 51505 31 2392 1
Move message from INBOX to TRASH
Feb 9 15:15:45 LAB-LMB-V-01 dovecot: imap(xxx): copy from INBOX: box=INBOX.Trash, uid=27, msgid=<CAB=TBLwMfSBGWSQ-W6H6VLmkXvEiK66am=bOseH=SUDGiGHaHw@mail.gmail.com>, size=1187 Feb 9 15:15:45 LAB-LMB-V-01 dovecot: imap(xxx): expunge: box=INBOX, uid=32, msgid=<CAB=TBLwMfSBGWSQ-W6H6VLmkXvEiK66am=bOseH=SUDGiGHaHw@mail.gmail.com>, size=2392
Maildirsize: 1073741824S 51505 31 2392 1 1187 1 -2392 -1
-- Laurent Papier - 03 88 75 80 50 Resp. système - SdV Plurimedia - <http://www.sdv.fr/>
On 03/13/2014 06:12 PM, Laurent Papier wrote:
Le Sun, 09 Feb 2014 15:32:48 -0200 fernando.figaro@uol.com.br écrit:
Hi, no solution just a confirmation of the bug. lz4 compression here.
Clean maildir directory generated with 'doveadm backup'. So S=..,W=.. are correct.
Moving this mail file from inbox to trash: -rw------- 1 maildir maildir 5165 Mar 13 17:01 1394726488.M954102P27201.dev-nc-pxe.sdv.fr,S=7590,W=7640:2,Sa
# cat maildirsize 12582910S,30C 108394 10 5165 1 -7590 -1
Hi Timo,
I'm posting more info about this issue:
Sent a message from gmail, delivered via lmtp/lda/sieve
-rw------- 1 vmail vmail 1187 Feb 9 15:14 1391966051.M730051P32575.LAB-STO-V-01,S=2392,W=2440
The message was compressed (gz)
Maildirsize: 1073741824S 51505 31 2392 1
Move message from INBOX to TRASH
Feb 9 15:15:45 LAB-LMB-V-01 dovecot: imap(xxx): copy from INBOX: box=INBOX.Trash, uid=27, msgid=<CAB=TBLwMfSBGWSQ-W6H6VLmkXvEiK66am=bOseH=SUDGiGHaHw@mail.gmail.com>, size=1187 Feb 9 15:15:45 LAB-LMB-V-01 dovecot: imap(xxx): expunge: box=INBOX, uid=32, msgid=<CAB=TBLwMfSBGWSQ-W6H6VLmkXvEiK66am=bOseH=SUDGiGHaHw@mail.gmail.com>, size=2392
Maildirsize: 1073741824S 51505 31 2392 1 1187 1 -2392 -1
Hello
This problem should be fixed by http://hg.dovecot.org/dovecot-2.2/rev/30fb6e95b110 but there is also another issue in Maildir+zlib (relating to received timestamp), that I have not found a fix for yet.
Teemu Huovila
Le Sun, 09 Feb 2014 15:32:48 -0200 fernando.figaro@uol.com.br écrit:
Hi Timo,
I'm posting more info about this issue:
Sent a message from gmail, delivered via lmtp/lda/sieve
-rw------- 1 vmail vmail 1187 Feb 9 15:14 1391966051.M730051P32575.LAB-STO-V-01,S=2392,W=2440
The message was compressed (gz)
Maildirsize: 1073741824S 51505 31 2392 1
Move message from INBOX to TRASH
Feb 9 15:15:45 LAB-LMB-V-01 dovecot: imap(xxx): copy from INBOX: box=INBOX.Trash, uid=27, msgid=<CAB=TBLwMfSBGWSQ-W6H6VLmkXvEiK66am=bOseH=SUDGiGHaHw@mail.gmail.com>, size=1187 Feb 9 15:15:45 LAB-LMB-V-01 dovecot: imap(xxx): expunge: box=INBOX, uid=32, msgid=<CAB=TBLwMfSBGWSQ-W6H6VLmkXvEiK66am=bOseH=SUDGiGHaHw@mail.gmail.com>, size=2392
Maildirsize: 1073741824S 51505 31 2392 1 1187 1 -2392 -1
Hi, Timo has fixed this issue. dovecot 2.2: http://hg.dovecot.org/dovecot-2.2/rev/30fb6e95b110 dovecot 2.1: http://hg.dovecot.org/dovecot-2.1/rev/2799cc960c0d
-- Laurent Papier
participants (4)
-
fernando.figaro@uol.com.br
-
Laurent Papier
-
Teemu Huovila
-
Timo Sirainen