- 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:
[root@airframe]:~# du -h ~user/Maildir/.Trash/dovecot-uidlist 8,0K /home/user/Maildir/.Trash/dovecot-uidlist [root@airframe]:~# wc -l < ~user/Maildir/.Trash/dovecot-uidlist 104 [root@airframe]:~# ls -1 ~user/Maildir/.Trash/cur/ | wc -l 103 [root@airframe]:~# [root@airframe]:~# du -h ~user/Maildir/.Logs.System\ Checks/dovecot-uidlist 664K /home/user/Maildir/.Logs.System Checks/dovecot-uidlist [root@airframe]:~# wc -l < ~user/Maildir/.Logs.System\ Checks/dovecot-uidlist 16112 [root@airframe]:~# ls -1 ~user/Maildir/.Logs.System\ Checks/cur/ | wc -l 16110 [root@airframe]:~#
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.