From: Timo Sirainen Date: Mon, 2 Jun 2008 15:57:13 +0000 (+0300) Subject: dbox: Fixed opening a maildir-converted file. X-Git-Tag: 1.1.rc8~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b760674d7dd8dd59debf571e277d6319cca624c3;p=thirdparty%2Fdovecot%2Fcore.git dbox: Fixed opening a maildir-converted file. --HG-- branch : HEAD --- diff --git a/src/lib-storage/index/dbox/dbox-file.c b/src/lib-storage/index/dbox/dbox-file.c index 95dd3d4e99..c307b5fc53 100644 --- a/src/lib-storage/index/dbox/dbox-file.c +++ b/src/lib-storage/index/dbox/dbox-file.c @@ -626,7 +626,7 @@ int dbox_file_get_mail_stream(struct dbox_file *file, uoff_t offset, 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,