[dovecot-cvs] dovecot/src/lib-mail istream-header-filter.c, 1.17,
1.18
cras at dovecot.org
cras at dovecot.org
Sat Sep 11 22:58:41 EEST 2004
Update of /var/lib/cvs/dovecot/src/lib-mail
In directory talvi:/tmp/cvs-serv4300/lib-mail
Modified Files:
istream-header-filter.c
Log Message:
seek fix
Index: istream-header-filter.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-mail/istream-header-filter.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- istream-header-filter.c 10 Sep 2004 11:44:07 -0000 1.17
+++ istream-header-filter.c 11 Sep 2004 19:58:38 -0000 1.18
@@ -237,6 +237,14 @@
(struct header_filter_istream *)stream;
size_t pos;
+ while (!mstream->header_read) {
+ if (_read(stream) == -1)
+ break;
+
+ (void)i_stream_get_data(&stream->istream, &pos);
+ i_stream_skip(&stream->istream, pos);
+ }
+
stream->istream.v_offset = v_offset;
stream->skip = stream->pos = 0;
stream->buffer = NULL;
@@ -246,14 +254,6 @@
mstream->hdr_ctx = NULL;
}
- while (!mstream->header_read) {
- if (_read(stream) == -1)
- break;
-
- (void)i_stream_get_data(&stream->istream, &pos);
- i_stream_skip(&stream->istream, pos);
- }
-
if (v_offset < mstream->header_size.virtual_size) {
/* seek into headers. we'll have to re-parse them, use
skip_count to set the wanted position */
More information about the dovecot-cvs
mailing list