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