diff src/imap/imap-fetch.c @ 6454:b5e6543b4385 HEAD

Make sure we do a mailbox sync after flag updates (STORE, FETCH). Also added a new IMAP_SYNC_FLAG_SAFE which is used to figure out if appends and expunges are safe to send to client when delay-newmail workaround is enabled.
author Timo Sirainen <tss@iki.fi>
date Sat, 22 Sep 2007 13:55:36 +0300
parents 65c69a53a7be
children 59490181469e
line wrap: on
line diff
--- a/src/imap/imap-fetch.c	Sat Sep 22 13:45:14 2007 +0300
+++ b/src/imap/imap-fetch.c	Sat Sep 22 13:55:36 2007 +0300
@@ -511,6 +511,7 @@
 
 	if (ctx->flags_update_seen && (flags & MAIL_SEEN) == 0) {
 		/* Add \Seen flag */
+		ctx->seen_flags_changed = TRUE;
 		flags |= MAIL_SEEN;
 		mail_update_flags(mail, MODIFY_ADD, MAIL_SEEN);
 	} else if (ctx->flags_show_only_seen_changes) {