[Dovecot] purge maildir folder after sa-learn

Florian Effenberger floeff at gmail.com
Wed May 26 10:56:53 EEST 2010


Hello everyone,

thanks for the fast replies, much appreciated!

2010/5/25 Timo Sirainen <tss at iki.fi>:

>> I am looking for a command-line utility to automatically purge one
>> Maildir folder.
>
> How about just:
>
> rm -f /path/to/Maildir/.spam-learn/*
>
> With v2.0 you can also do:
>
> doveadm expunge -u username mailbox spam-learn all

I run 1.x, so doeveadm doesn't exist. :-)
Can I simply delete the files, don't I destroy any indices or slow
down Dovecot operation because of index rebuilding? Sounds like a
simple solution I also thought of, but I was hesitant of just deleting
the files...

Thanks,
Florian


More information about the dovecot mailing list