[Dovecot] delete messages after sa-learn

Florian Effenberger floeff at gmail.com
Sun May 30 15:01:31 EEST 2010


Hi Andrzej,

2010/5/28 Andrzej Adam Filip <anfi at onet.eu>:

>> does fetching to mbox file bring any advantage? It seems that learning
>> out of maildir and rm'ing afterwards works like a charm, so I guess
>> fetchmail would bring more overhead?
>
> It will bring more overhead but "some people" value portable solutions.
> Some people try to avoid locking THEMSELVES into
> a) specific format of IMAP folder
>   As I understand dovecot "recommends" switching from maildir to dbox
> b) specific software (specific IMAP server)
>   I do not plan to change dovecot but I do like to keep my options open.
>
> Anyway:  instead of scanning all and deleting files in maildir (race
> risk) you may consider moving files to another file directory/folder
> (on the same file-system) and learn from it.
> You may ask Timo How to lock maildir message/file before
> "moving it out"/"deleting it" by non dovecot software :-)

Hm, now I'm irritated a bit. :-) If I have a dedicated maildir
directory (IMAP folder) for spam learn, what can happen if I scan and
delete files out of it? The worst thing that can happen is that the
IMAP folder gets corrupt, which is not harm, as it's spam anyway.
However, from what I've heard, Maildir doesn't have any file locking
issues, so there should be no problem?

Florian


More information about the dovecot mailing list