evolution r36239 - trunk/mail



Author: msuman
Date: Mon Sep  1 04:22:45 2008
New Revision: 36239
URL: http://svn.gnome.org/viewvc/evolution?rev=36239&view=rev

Log:
Milan Crha  <mcrha redhat com> ** Fix for bug #534039 (Make sure search folder's unread count will be tracked properly in a tree even before the folder is opened in the UI).

Modified:
   trunk/mail/ChangeLog
   trunk/mail/mail-folder-cache.c

Modified: trunk/mail/mail-folder-cache.c
==============================================================================
--- trunk/mail/mail-folder-cache.c	(original)
+++ trunk/mail/mail-folder-cache.c	Mon Sep  1 04:22:45 2008
@@ -206,6 +206,19 @@
 			e_event_emit((EEvent *)e, "folder.changed", (EEventTarget *)t);
 		}
 
+		if (CAMEL_IS_VEE_STORE (up->store)) {
+			/* Normally the vfolder store takes care of the folder_opened event itself,
+			   but we add folder to the noting system later, thus we do not know about
+			   search folders to update them in a tree, thus ensure their changes will
+			   be tracked correctly. */
+			CamelFolder *folder = camel_store_get_folder (up->store, up->full_name, 0, NULL);
+
+			if (folder) {
+				mail_note_folder (folder);
+				camel_object_unref (folder);
+			}
+		}
+
 		free_update(up);
 
 		LOCK(info_lock);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]