[Dovecot] dovecot-uidlist cleanup
Thomas Zajic
zlatko at zlatko.fdns.net
Wed Jun 18 08:33:36 EEST 2008
* 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 at airframe]:~# du -h ~user/Maildir/.Trash/dovecot-uidlist
8,0K /home/user/Maildir/.Trash/dovecot-uidlist
[root at airframe]:~# wc -l < ~user/Maildir/.Trash/dovecot-uidlist
104
[root at airframe]:~# ls -1 ~user/Maildir/.Trash/cur/ | wc -l
103
[root at airframe]:~#
[root at airframe]:~# du -h ~user/Maildir/.Logs.System\ Checks/dovecot-uidlist
664K /home/user/Maildir/.Logs.System Checks/dovecot-uidlist
[root at airframe]:~# wc -l < ~user/Maildir/.Logs.System\ Checks/dovecot-uidlist
16112
[root at airframe]:~# ls -1 ~user/Maildir/.Logs.System\ Checks/cur/ | wc -l
16110
[root at 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.
More information about the dovecot
mailing list