I have a client that wants to remove deleted emails that are older than six months. I have written a perl script that will remove the email files in the 'cur' directory that meet the criteria, but I am concerned about the dovecot indexes.
In the dovecot documentation (
http://wiki.dovecot.org/IndexFiles) it states that "If index files are missing, Dovecot creates them automatically when the mailbox is opened.". Is it advisable for me to simply remove the indexes and let them be rebuilt on the next access or will they sort themselves out either way upon access?
Thanks.