Hello,
I was testing the append function with a wrong amount of characters. The message I appended was saved in the tmp-folder. But even after I received the "BAD ..." message and after I disconnected, the message remained in the tmp-folder. Would it ever be deleted?
On Wed, 2004-05-26 at 21:35, Marten Lehmann wrote:
Hello,
I was testing the append function with a wrong amount of characters. The message I appended was saved in the tmp-folder. But even after I received the "BAD ..." message and after I disconnected, the message remained in the tmp-folder. Would it ever be deleted?
I can't reproduce that, the message gets deleted if something goes wrong. I also don't see any files in tmp/ dirs in a system that has been running for over a year. Does it happen every time with you?
Anyway, it might be useful to check tmp/ once in a while and delete the files that could have possibly been left there (especially because of crashes), but I'm not sure if it's Dovecot's job. It shouldn't anyway be done too often to avoid useless extra I/O. Maybe a daily cronjob with something like:
find /var/mail -path 'tmp/*' -cmin +60 -print0|xargs -0 rm
Timo Sirainen <tss@iki.fi> wrote:
Anyway, it might be useful to check tmp/ once in a while and delete the files that could have possibly been left there (especially because of crashes), but I'm not sure if it's Dovecot's job. It shouldn't anyway be done too often to avoid useless extra I/O. Maybe a daily cronjob with something like:
find /var/mail -path 'tmp/*' -cmin +60 -print0|xargs -0 rm
see http://www.qmail.org/man/man5/maildir.html
The reader is also expected to look through the tmp directory and to clean up any old files found there. A file in tmp may be safely removed if it has not been accessed in 36 hours.
-- http://reboot.animeirc.de http://sylpheed-claws.sourceforge.net/
participants (3)
-
Christoph Hohmann
-
Marten Lehmann
-
Timo Sirainen