[dovecot-cvs] dovecot/src/lib-storage/index index-mail.c,1.83,1.84

cras at dovecot.org cras at dovecot.org
Sun Jul 3 23:53:52 EEST 2005


Update of /var/lib/cvs/dovecot/src/lib-storage/index
In directory talvi:/tmp/cvs-serv9206/lib-storage/index

Modified Files:
	index-mail.c 
Log Message:
Fetching message parts or virtual size from cache didn't work correctly and
could have crashed.



Index: index-mail.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-mail.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -d -r1.83 -r1.84
--- index-mail.c	3 Jul 2005 20:48:44 -0000	1.83
+++ index-mail.c	3 Jul 2005 20:53:50 -0000	1.84
@@ -777,7 +777,7 @@
 	   header/body */
 	if ((mail->wanted_fields & MAIL_FETCH_MESSAGE_PARTS) != 0) {
 		unsigned int cache_field =
-			cache_fields[MAIL_FETCH_MESSAGE_PARTS].idx;
+			cache_fields[MAIL_CACHE_MESSAGEPART].idx;
 
 		if (mail_cache_field_exists(cache_view, seq, cache_field) <= 0)
 			data->access_part |= PARSE_HDR | PARSE_BODY;
@@ -785,7 +785,7 @@
 
 	if ((mail->wanted_fields & MAIL_FETCH_VIRTUAL_SIZE) != 0) {
 		unsigned int cache_field =
-			cache_fields[MAIL_FETCH_VIRTUAL_SIZE].idx;
+			cache_fields[MAIL_CACHE_VIRTUAL_FULL_SIZE].idx;
 
 		if (mail_cache_field_exists(cache_view, seq, cache_field) <= 0)
 			data->access_part |= READ_HDR | READ_BODY;



More information about the dovecot-cvs mailing list