[Dovecot] append

Timo Sirainen tss at iki.fi
Wed May 26 22:25:35 EEST 2004


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20040526/bb478508/attachment.pgp


More information about the dovecot mailing list