[dovecot-cvs] dovecot/src/lib-storage/index/mbox mbox-mail.c, 1.20, 1.21

cras at dovecot.org cras at dovecot.org
Fri Jan 7 23:45:44 EET 2005


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

Modified Files:
	mbox-mail.c 
Log Message:
mail->expunged field wasn't actually set. Now it's always set if
wanted_fields contains message header or body.



Index: mbox-mail.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-mail.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- mbox-mail.c	26 Dec 2004 09:12:45 -0000	1.20
+++ mbox-mail.c	7 Jan 2005 21:45:42 -0000	1.21
@@ -22,7 +22,7 @@
 	enum mbox_sync_flags sync_flags = 0;
 	int ret, deleted;
 
-	if (mail->data.deleted)
+	if (mail->mail.expunged)
 		return 0;
 
 __again:
@@ -49,7 +49,7 @@
 			     &deleted);
 	if (ret < 0) {
 		if (deleted) {
-			mail->data.deleted = TRUE;
+			mail->mail.expunged = TRUE;
 			return 0;
 		}
 		return -1;



More information about the dovecot-cvs mailing list