[dovecot-cvs] dovecot/src/lib-mail message-body-search.c,1.14,1.15
cras at procontrol.fi
cras at procontrol.fi
Sun Nov 9 20:26:27 EET 2003
- Previous message: [dovecot-cvs]
dovecot/src/lib istream-limit.c,NONE,1.1 Makefile.am,1.34,1.35
iostream-internal.h,1.3,1.4 istream-data.c,1.6,1.7
istream-file.c,1.13,1.14 istream-internal.h,1.4,1.5
istream-mmap.c,1.7,1.8 istream.c,1.13,1.14 istream.h,1.8,1.9
ostream-file.c,1.23,1.24
- Next message: [dovecot-cvs] dovecot/src/lib-index/mbox istream-mbox.c,1.7,1.8
mbox-append.c,1.45,1.46 mbox-index.c,1.84,1.85
mbox-index.h,1.32,1.33 mbox-open.c,1.22,1.23
mbox-rewrite.c,1.68,1.69 mbox-sync-full.c,1.21,1.22
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/dovecot/src/lib-mail
In directory danu:/tmp/cvs-serv3937/lib-mail
Modified Files:
message-body-search.c
Log Message:
istream rewrite. instead of directly setting any limits to stream, you now
have to use i_stream_create_limit() to existing stream. this should make the
istreams much easier to create and understand how they work.
Index: message-body-search.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-mail/message-body-search.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- message-body-search.c 21 Sep 2003 16:21:37 -0000 1.14
+++ message-body-search.c 9 Nov 2003 18:26:25 -0000 1.15
@@ -275,7 +275,6 @@
buffer_t *decodebuf;
pool_t pool;
size_t data_size, pos;
- uoff_t old_limit;
ssize_t ret;
int found;
@@ -302,9 +301,8 @@
i_stream_skip(input, part->physical_pos +
part->header_size.physical_size - input->v_offset);
- old_limit = input->v_limit;
- i_stream_set_read_limit(input, input->v_offset +
- part->body_size.physical_size);
+ input = i_stream_create_limit(default_pool, input, 0,
+ part->body_size.physical_size);
found = FALSE; pos = 0;
while (i_stream_read_data(input, &data, &data_size, pos) > 0) {
@@ -347,7 +345,7 @@
pos -= data_size;
}
- i_stream_set_read_limit(input, old_limit);
+ i_stream_unref(input);
if (ctx->translation != NULL)
charset_to_utf8_end(ctx->translation);
- Previous message: [dovecot-cvs]
dovecot/src/lib istream-limit.c,NONE,1.1 Makefile.am,1.34,1.35
iostream-internal.h,1.3,1.4 istream-data.c,1.6,1.7
istream-file.c,1.13,1.14 istream-internal.h,1.4,1.5
istream-mmap.c,1.7,1.8 istream.c,1.13,1.14 istream.h,1.8,1.9
ostream-file.c,1.23,1.24
- Next message: [dovecot-cvs] dovecot/src/lib-index/mbox istream-mbox.c,1.7,1.8
mbox-append.c,1.45,1.46 mbox-index.c,1.84,1.85
mbox-index.h,1.32,1.33 mbox-open.c,1.22,1.23
mbox-rewrite.c,1.68,1.69 mbox-sync-full.c,1.21,1.22
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the dovecot-cvs
mailing list