From 3bd0a70d2294faeb5b5b53672e53210bf83d6f83 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 7 Dec 2000 02:02:43 +0000 Subject: We want to bitwise-or the server and cached flags here so that we keep the 2000-12-06 Jeffrey Stedfast * providers/imap/camel-imap-folder.c (imap_refresh_info): We want to bitwise-or the server and cached flags here so that we keep the flags that we have set locally and set any additional flags that a parallel connection may have set. svn path=/trunk/; revision=6834 --- camel/providers/imap/camel-imap-folder.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'camel/providers/imap/camel-imap-folder.c') diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index 35346813db..b6f6cc1132 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -311,8 +311,12 @@ imap_refresh_info (CamelFolder *folder, CamelException *ex) /* Update summary flags */ if (info->flags != new[i].flags) { - info->flags = new[i].flags; - camel_object_trigger_event (CAMEL_OBJECT (folder), + /* Keep the flags that we have set locally and set + any additional flags that a parallel connection + may have set. */ + info->flags |= new[i].flags; + + camel_object_trigger_event (CAMEL_OBJECT (folder), "message_changed", (char *)camel_message_info_uid(info)); } -- cgit