evolution-data-server r8969 - branches/camel-db-summary/camel/providers/imap



Author: psankar
Date: Thu Jun 12 11:02:11 2008
New Revision: 8969
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=8969&view=rev

Log:
IMAP :

Load unread count initially

and after that : after-a-folder-switch+send-recv

Lots more to do.



Modified:
   branches/camel-db-summary/camel/providers/imap/camel-imap-store.c

Modified: branches/camel-db-summary/camel/providers/imap/camel-imap-store.c
==============================================================================
--- branches/camel-db-summary/camel/providers/imap/camel-imap-store.c	(original)
+++ branches/camel-db-summary/camel/providers/imap/camel-imap-store.c	Thu Jun 12 11:02:11 2008
@@ -2644,10 +2644,15 @@
 
 	folder = camel_object_bag_peek(store->folders, fi->full_name);
 	if (folder) {
-		fi->unread = camel_folder_get_unread_message_count(folder);
-		fi->total = camel_folder_get_message_count(folder);
+		CamelImapSummary *ims;
+		ims = (CamelImapSummary *) camel_imap_summary_new (folder, NULL);
+
+		fi->unread = ((CamelFolderSummary *)ims)->unread_count;
+		fi->total = ((CamelFolderSummary *)ims)->saved_count;
+
+		camel_object_unref(ims);
 		camel_object_unref(folder);
-	}
+	} 
 }
 
 struct _refresh_msg {



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