Re: [Dovecot] Please HELP: how to delete all messages older than X days

2013-08-12 Thread Chris Young
I've got a nightly cron job that runs a bash script to delete old messages from specific folders doveadm expunge -A mailbox complete savedbefore 7d doveadm expunge -A mailbox failed savedbefore 7d doveadm expunge -A mailbox % savedbefore 60d this deletes anything, in any mailbox, older than 60 day

Re: [Dovecot] Please HELP: how to delete all messages older than X days

2013-08-12 Thread Timo Sirainen
On 8.8.2013, at 13.00, Răzvan Sandu wrote: > Pe 7 Aug 2013 11:35, Timo Sirainen a scris: > >>> Thank you, but doveadm expunge will ask for the mailbox name: >>> >>> [root@mail1 ~]# doveadm expunge -u john@example.com ON >>> 2013-08-07 doveadm(root): Fatal: expunge: To avoid accidents, >>> s

Re: [Dovecot] Please HELP: how to delete all messages older than X days

2013-08-08 Thread Răzvan Sandu
Pe 7 Aug 2013 11:35, Timo Sirainen a scris: Thank you, but doveadm expunge will ask for the mailbox name: [root@mail1 ~]# doveadm expunge -u john@example.com ON 2013-08-07 doveadm(root): Fatal: expunge: To avoid accidents, search query must contain MAILBOX in all search branches Add: mail

Re: [Dovecot] Please HELP: how to delete all messages older than X days from the server?

2013-08-07 Thread Timo Sirainen
On 7.8.2013, at 11.22, Răzvan Sandu wrote: > On Tue, 06 Aug 2013 19:18:15 +0200, Pascal Volk a scris: > >> There is also the -A option, see >> http://wiki2.dovecot.org/Tools/Doveadm/Expunge#section_options > > > Thank you, but doveadm expunge will ask for the mailbox name: > > [root@mail1 ~]#

Re: [Dovecot] Please HELP: how to delete all messages older than X days from the server?

2013-08-07 Thread Răzvan Sandu
On Tue, 06 Aug 2013 19:18:15 +0200, Pascal Volk a scris: > There is also the -A option, see > http://wiki2.dovecot.org/Tools/Doveadm/Expunge#section_options Thank you, but doveadm expunge will ask for the mailbox name: [root@mail1 ~]# doveadm expunge -u john@example.com ON 2013-08-07 dovead

Re: [Dovecot] Please HELP: how to delete all messages older than X days from the server?

2013-08-06 Thread Pascal Volk
On 08/06/2013 06:31 PM Răzvan Sandu wrote: > … > Implementing filesystem quotas is not an option because a. presently, > all virtual users share same UID/GID on the server and b. administrative > reasons (the "full quota" situation may occur unexpectedly and this is > not tolerable in corporate

[Dovecot] Please HELP: how to delete all messages older than X days from the server?

2013-08-06 Thread Răzvan Sandu
Hello, Would you please help me solve the following case? My (CentOS) server runs dovecot and allows both POP3 and IMAP service. Users are virtual users (no home directories), with messages stored in Maildir directories under /var/spool/mail/vhosts/example.com/username Some of them use mobil