dovecot-1.1: dbox: Some mails could have been written using m.* ...

dovecot at dovecot.org dovecot at dovecot.org
Sun May 25 02:52:44 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/30a97495c7bf
changeset: 7540:30a97495c7bf
user:      Timo Sirainen <tss at iki.fi>
date:      Sun May 25 02:50:06 2008 +0300
description:
dbox: Some mails could have been written using m.* files, even though
everything was supposed to be u.* for now.

diffstat:

1 file changed, 7 insertions(+), 2 deletions(-)
src/lib-storage/index/dbox/dbox-file.c |    9 +++++++--

diffs (19 lines):

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 dbox_file_get_append_stream(struct d
 {
 	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)


More information about the dovecot-cvs mailing list