Florian Effenberger <flo...@gmail.com> wrote: > Hi Andrzej, > > 2010/5/28 Andrzej Adam Filip <a...@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
It depends on what you want: a) dirty&ugly but *trivial* "hack" serving your very specific requirement that can "make troubles" after some change in pattern of use b) simple solution -- [pl>en: Andrew] Andrzej Adam Filip : a...@onet.eu 10) there is no 10, but it sounded like a nice number :) -- Wichert Akkerman