# HG changeset patch # User Timo Sirainen # Date 1211673006 -10800 # Node ID 30a97495c7bf22eac751551ca6f104b593ff50ba # Parent dd378ab0263eaa663a40918f011e4695aa51f229 dbox: Some mails could have been written using m.* files, even though everything was supposed to be u.* for now. diff -r dd378ab0263e -r 30a97495c7bf src/lib-storage/index/dbox/dbox-file.c --- a/src/lib-storage/index/dbox/dbox-file.c Sun May 25 01:52:17 2008 +0300 +++ b/src/lib-storage/index/dbox/dbox-file.c Sun May 25 02:50:06 2008 +0300 @@ -757,8 +757,13 @@ { int ret; - if (file->nonappendable) - return 0; + if (file->append_count == 0) { + if (file->nonappendable) + return 0; + } else { + if (!dbox_file_can_append(file, mail_size)) + return 0; + } ret = dbox_file_get_append_stream_int(file, mail_size, stream_r); if (ret == 0)