[Dovecot] Delete messages with archivemail
Hi,
I have set up a dovecot imap server (Version 1.0.15 on Debain Lenny).
Until know I used courier.
Every night I run a script calling archivemail ( http://archivemail.sourceforge.net/) to delete all messages in the Spam folder that are older than 30 days
archivemail deletes the files directly in the Maildir folder. I am not using IMAP for this (cause I don't want to store the passwords in plain text).
I know that dovecot uses index files to speed up Maildir access. Will there be any problems with the index files when I delete the old spam like this?
Cheers Mario
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mon, 25 Jan 2010, gstyle wrote:
I know that dovecot uses index files to speed up Maildir access. Will there be any problems with the index files when I delete the old spam like this?
No, but the usual problems with distributed IMAP: e.g. an already connected client might not honor the removal before a manual refresh.
Regards,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBS12vVr+Vh58GPL/cAQLHYgf/UrYDMPW43eV3WKaCcZYgdC4/BPU6E1ey odzFqZiTBEHMlz0//MV4+X6ktWGttvMY4fxfigan28Hnztfr+//RQl/g/AHBvor/ S/9OVrdBrsGNNvWfarG/wOuxwhzlwZg++nWfkJPcu4m0MN4YFUTGmeQzVvWZ1LY9 5w4edG3PTDYttKQn04J+d/mFfizq6FCialdw5jybt24ABkp+536ogmAGPzorZVno SpiLtIDF+ok7b+Zc+OSbf9JJUoXmAtaV+Z+Tx7t5MsTZaA4K9zrJCMxjLJ7TdYqp pdQPg/u5PeZu7eIMWtqMoIku3reszIlBqOEK9/2GouOCNOgYDscD/A== =H51B -----END PGP SIGNATURE-----
On 2010-01-25 8:53 AM, gstyle wrote:
Every night I run a script calling archivemail ( http://archivemail.sourceforge.net/) to delete all messages in the Spam folder that are older than 30 days
archivemail deletes the files directly in the Maildir folder. I am not using IMAP for this (cause I don't want to store the passwords in plain text).
I know that dovecot uses index files to speed up Maildir access. Will there be any problems with the index files when I delete the old spam like this?
No, the indexes are self-healing, but...
You'd be better off upgrading to the latest stable version (via backports) and using the expire plugin - its made for doing things just like this.
http://wiki.dovecot.org/Plugins/Expire
--
Best regards,
Charles
2010/1/25 Charles Marcus <CMarcus@media-brokers.com>
You'd be better off upgrading to the latest stable version (via backports) and using the expire plugin - its made for doing things just like this.
http://wiki.dovecot.org/Plugins/Expire
Mh... could be an option...
Do I only install the new packages and tweak the config, or do I have to convert the Maildirs in any way for an upgrade from Dovecot 1.0?
Anything importent to consider for the upgrade?
Cheers Mario
On 2010-01-25 10:52 AM, gstyle wrote:
Do I only install the new packages and tweak the config, or do I have to convert the Maildirs in any way for an upgrade from Dovecot 1.0?
Anything importent to consider for the upgrade?
http://wiki.dovecot.org/Upgrading/
If you're already using maildir, then no, nothing to convert there, but I think there may be a few config changes, so, as always, read the upgrade pages carefully...
--
Best regards,
Charles
gstyle schrieb:
2010/1/25 Charles Marcus <CMarcus@media-brokers.com>
Moin
You'd be better off upgrading to the latest stable version (via backports) and using the expire plugin - its made for doing things just like this.
http://wiki.dovecot.org/Plugins/Expire
Mh... could be an option... Do I only install the new packages and tweak the config, or do I have to convert the Maildirs in any way for an upgrade from Dovecot 1.0?
No, there are no problems with the Maildirs.
Anything importent to consider for the upgrade?
I encountered some trouble with the config file while using the old 1.0-configuration. Namely the plugins (sive, managedsieve and quota) did not do what I wanted.
This was cured in fifteen minutes by copying my changes from my old config file in the one delivered with 1.2.
In all cases you should read the webpages addressing the upgrades.
Cheers Mario
Bye Dennis
participants (4)
-
Charles Marcus
-
Dennis Guhl
-
gstyle
-
Steffen Kaiser