[Dovecot] Scheduled folder purging

Tomi Hakala tomi.hakala at pobox.fi
Mon Feb 18 18:28:32 EET 2008


Pietro wrote:
> Thanks a lot Ronald.
> Is there any issue I must consider about dovecot indexes?

Dovecot will log an warning but nothing much else, so it is pretty safe.

Tomi


> -Pietro.
> 
> 2008/2/18, Ronald MacDonald <ronald at rmacd.com>:
>> On 18/02/2008, Pietro <webmad75 at gmail.com> wrote:
>>> Hi all.
>>> I'm looking for a way to empty user's trash folder.
>>> Can message deletion or folder purging be scheduled?
>>>
>>> Thanks in advance.
>>>
>>> -Pietro.
>>>
>> Of course. Run a cron job to search, for example, for files older than
>> a certain date.
>>
>> Delete all files in /cur which are older than 30 days:
>> /usr/bin/find /home/vmail/*/.Junk/cur -mtime +30 -type f -daystart
>> -exec rm '{}' \;
>>
>> Hope that helps.
>>
>> Kind regards,
>> Ronald.
>>
>>
>> --
>> Ronald MacDonald
>> http://www.rmacd.com/
>> 0777 235 1655
>>
> 



More information about the dovecot mailing list