[dovecot-cvs] dovecot/src/lib-storage/index index-mail-headers.c, 1.23, 1.24

cras at procontrol.fi cras at procontrol.fi
Mon Jul 5 00:22:02 EEST 2004


Update of /home/cvs/dovecot/src/lib-storage/index
In directory talvi:/tmp/cvs-serv31171/lib-storage/index

Modified Files:
	index-mail-headers.c 
Log Message:
cache fix



Index: index-mail-headers.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-storage/index/index-mail-headers.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- index-mail-headers.c	4 Jul 2004 21:07:43 -0000	1.23
+++ index-mail-headers.c	4 Jul 2004 21:22:00 -0000	1.24
@@ -781,7 +781,7 @@
 	len = str_len(mail->data.header_data) -
 		data->header_data_uncached_offset;
 
-	if (len != 0) {
+	if (idx >= data->header_data_cached) {
 		mail_cache_add(mail->trans->cache_trans, data->seq,
 			       mail_cache_header_fields[idx], str, len+1);
 	}



More information about the dovecot-cvs mailing list