[dovecot-cvs] dovecot/src/lib-index mail-index-update.c,1.34,1.35

cras at procontrol.fi cras at procontrol.fi
Sat Nov 30 16:02:27 EET 2002


Update of /home/cvs/dovecot/src/lib-index
In directory danu:/tmp/cvs-serv18544/lib-index

Modified Files:
	mail-index-update.c 
Log Message:
When updating cached fields with mbox, the first message was set to size of
the whole mbox file, deleting the rest of the messages from the index (mbox
file itself didn't get corrupted)..



Index: mail-index-update.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index-update.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- mail-index-update.c	13 Nov 2002 05:00:49 -0000	1.34
+++ mail-index-update.c	30 Nov 2002 14:02:24 -0000	1.35
@@ -507,7 +507,7 @@
 		message_parse_header(NULL, inbuf, &hdr_size,
 				     update_header_func, &ctx);
 
-		body_size.physical_size = inbuf->v_size - inbuf->v_offset;
+		body_size.physical_size = inbuf->v_limit - inbuf->v_offset;
 		if (body_size.physical_size == 0)
                         body_size.virtual_size = 0;
 		else if (update->data_hdr.virtual_size == 0)




More information about the dovecot-cvs mailing list