[dovecot-cvs] dovecot/src/lib-storage/index index-mail.c,1.59,1.60

cras at dovecot.org cras at dovecot.org
Fri Oct 8 15:01:43 EEST 2004


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

Modified Files:
	index-mail.c 
Log Message:
cache_flags were being updated constantly.



Index: index-mail.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/index-mail.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- index-mail.c	15 Sep 2004 13:20:16 -0000	1.59
+++ index-mail.c	8 Oct 2004 12:01:41 -0000	1.60
@@ -631,7 +631,6 @@
 {
 	struct index_mail_data *data = &mail->data;
         const struct mail_index_record *rec;
-        uint32_t cache_flags;
 
 	if (mail_index_lookup(mail->trans->trans_view, seq, &rec) < 0) {
 		mail_storage_set_index_error(mail->ibox);
@@ -650,14 +649,16 @@
 	data->received_date = data->sent_date.time = (time_t)-1;
 
 	if (!index_mail_get_fixed_field(mail, MAIL_CACHE_FLAGS,
-					&cache_flags, sizeof(cache_flags)))
-		cache_flags = 0;
+					&data->cache_flags,
+					sizeof(data->cache_flags)))
+		data->cache_flags = 0;
 
 	mail->mail.seq = seq;
 	mail->mail.uid = rec->uid;
-	mail->mail.has_nuls = (cache_flags & MAIL_CACHE_FLAG_HAS_NULS) != 0;
+	mail->mail.has_nuls =
+		(data->cache_flags & MAIL_CACHE_FLAG_HAS_NULS) != 0;
 	mail->mail.has_no_nuls =
-		(cache_flags & MAIL_CACHE_FLAG_HAS_NO_NULS) != 0;
+		(data->cache_flags & MAIL_CACHE_FLAG_HAS_NO_NULS) != 0;
 
 	t_push();
 



More information about the dovecot-cvs mailing list