* Timo Sirainen, 2008-06-18 02:30

Right. I wish someone would have told me about this earlier rather than
kludging around it by deleting the file in a cronjob. ;)

This should help: http://hg.dovecot.org/dovecot-1.0/rev/92c3d6e64f2a and
for v1.1: http://hg.dovecot.org/dovecot-1.1/rev/dbdb33bf8893
[...]

Wow ... yes, this did in fact help a lot! :-) Deleting a message in Thunderbird
(= moving it to the Trash folder) is now an instant action again, rather than
the 2-3+ seconds (and sometimes even more) it used to take before with the huge
dovecot-uidlist:

[EMAIL PROTECTED]:~# du -h ~user/Maildir/.Trash/dovecot-uidlist
8,0K    /home/user/Maildir/.Trash/dovecot-uidlist
[EMAIL PROTECTED]:~# wc -l < ~user/Maildir/.Trash/dovecot-uidlist
104
[EMAIL PROTECTED]:~# ls -1 ~user/Maildir/.Trash/cur/ | wc -l
103
[EMAIL PROTECTED]:~# [EMAIL PROTECTED]:~# du -h ~user/Maildir/.Logs.System\ Checks/dovecot-uidlist
664K    /home/user/Maildir/.Logs.System Checks/dovecot-uidlist
[EMAIL PROTECTED]:~# wc -l < ~user/Maildir/.Logs.System\ Checks/dovecot-uidlist
16112
[EMAIL PROTECTED]:~# ls -1 ~user/Maildir/.Logs.System\ Checks/cur/ | wc -l
16110
[EMAIL PROTECTED]:~#
Thanks a lot Timo, you rock! :-)


Bye,
Thomas


PS: I would have told you earlier, but I didn't even know that dovecot was
   supposed to shrink its dovecot-uidlist files every now and then. ;-) I
   only checked these files when the discussion came up recently, and only
   then I found out that I actually suffered from the same problem.

Reply via email to