dovecot-1.1: dbox: Fixed opening a maildir-converted file.

dovecot at dovecot.org dovecot at dovecot.org
Mon Jun 2 18:57:16 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/f681e55f5c60
changeset: 7589:f681e55f5c60
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jun 02 18:57:13 2008 +0300
description:
dbox: Fixed opening a maildir-converted file.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-storage/index/dbox/dbox-file.c |    2 +-

diffs (12 lines):

diff -r ffa9c0dc27a7 -r f681e55f5c60 src/lib-storage/index/dbox/dbox-file.c
--- a/src/lib-storage/index/dbox/dbox-file.c	Mon Jun 02 18:51:02 2008 +0300
+++ b/src/lib-storage/index/dbox/dbox-file.c	Mon Jun 02 18:57:13 2008 +0300
@@ -626,7 +626,7 @@ int dbox_file_get_mail_stream(struct dbo
 	if (offset == 0)
 		offset = file->file_header_size;
 
-	if (offset != file->cur_offset) {
+	if (offset != file->cur_offset || file->cur_uid == 0) {
 		file->cur_offset = offset;
 		i_stream_seek(file->input, offset);
 		ret = dbox_file_read_mail_header(file, &file->cur_uid,


More information about the dovecot-cvs mailing list