[dovecot-cvs] dovecot/src/lib-storage/index/dbox dbox-sync-full.c, 1.1, 1.2

cras at dovecot.org cras at dovecot.org
Thu Jan 5 03:27:53 EET 2006


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

Modified Files:
	dbox-sync-full.c 
Log Message:
Read flags properly from header when syncing



Index: dbox-sync-full.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/dbox/dbox-sync-full.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- dbox-sync-full.c	21 Dec 2005 18:43:16 -0000	1.1
+++ dbox-sync-full.c	5 Jan 2006 01:27:51 -0000	1.2
@@ -49,15 +49,15 @@
 	}
 
 	flags = 0;
-	if (hdr->answered)
+	if (hdr->answered == '1')
 		flags |= MAIL_ANSWERED;
-	if (hdr->flagged)
+	if (hdr->flagged == '1')
 		flags |= MAIL_FLAGGED;
-	if (hdr->deleted)
+	if (hdr->deleted == '1')
 		flags |= MAIL_DELETED;
-	if (hdr->seen)
+	if (hdr->seen == '1')
 		flags |= MAIL_SEEN;
-	if (hdr->draft)
+	if (hdr->draft == '1')
 		flags |= MAIL_DRAFT;
 	mail_index_update_flags(ctx->trans, seq, MODIFY_REPLACE, flags);
 	// FIXME: keywords



More information about the dovecot-cvs mailing list