[Dovecot] Trash expire plugin

Klaus Alexander Seistrup kseistrup at gmail.com
Sat Jun 24 07:39:11 EEST 2006


Timothy White wrote:

>> plugin {
>>   # Trash 7d, Spam 30d
>>   expire = Trash 7 Spam 30
>> }
>
> Timo, how is progress on this? Is there anything we can do to help,
> cause I'm really interested in this.

If you can't wait then take a look at imapfilter:
  http://imapfilter.hellug.gr/

Example ~/.imapfilter/ config.lua:

#v+

mbox = {
        server = '127.0.0.1',
        username = 'blahblah',
        password = '**********',
}

seen_one_month_ago = {
        'seen',
        'sentbefore ' .. date_before(32),
}

check(mbox, 'Trash')
results = match(mbox, 'Trash', seen_one_months_ago)
delete(mbox, 'Trash', results)

#v-

Cheers,

-- 
Klaus Alexander Seistrup
Copenhagen · Denmark
http://surdej.dk/


More information about the dovecot mailing list