[Dovecot] How to delete old mails in dovecot 1.2.x

Przemysław Orzechowski przemek.orzechowski at makolab.pl
Fri Feb 17 00:39:17 EET 2012


I have already read this page but there is no info on how to delete old
mails in dovecot 1.2

I need to delete old mails from over 100 mailboxes with average of 10k
mails / mailbox 
Is there a way to delete old mails (by message date not file creation
date) as with doveadm in dovecot 2 ?

Thanks in advance

bellow my dovecot -n (not sure if it is neccessary or not so just in case)

# 1.2.9: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-33-server x86_64 Ubuntu 10.04.3 LTS 
log_timestamp: %Y-%m-%d %H:%M:%S 
protocols: imap imaps pop3 pop3s
ssl_cert_file: /etc/ssl/makolab/star_makolab_pl.crt
ssl_key_file: /etc/ssl/makolab/star_makolab_pl.key
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
mail_privileged_group: mail
mail_location: maildir:~/Maildir
mbox_write_locks: fcntl dotlock
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugins(default): quota imap_quota
mail_plugins(imap): quota imap_quota
mail_plugins(pop3): quota
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
auth default:
    driver: pam
    driver: passwd
  quota: fs:Limit uzytkownika:user
  quota2: fs:Limit domeny:group

More information about the dovecot mailing list