evolution-exchange r1804 - in trunk: . camel



Author: abharath
Date: Mon Sep 15 16:58:28 2008
New Revision: 1804
URL: http://svn.gnome.org/viewvc/evolution-exchange?rev=1804&view=rev

Log:
2008-09-15  Bharath Acharya  <abharath novell com>

        ** Part of fix for bug #552013

         * camel/camel-exchange-folder.c
         (camel_exchange_folder_add_message): Just update the count when adding 
         messages. Also fixes the deadlock reported.



Modified:
   trunk/ChangeLog
   trunk/camel/camel-exchange-folder.c

Modified: trunk/camel/camel-exchange-folder.c
==============================================================================
--- trunk/camel/camel-exchange-folder.c	(original)
+++ trunk/camel/camel-exchange-folder.c	Mon Sep 15 16:58:28 2008
@@ -762,18 +762,11 @@
 
 	camel_folder_summary_add (folder->summary, info);
 
-	if (!camel_stub_send (exch->stub, NULL, CAMEL_STUB_CMD_SYNC_COUNT,
-				 CAMEL_STUB_ARG_FOLDER, folder->full_name,
-				 CAMEL_STUB_ARG_RETURN,
-			      	 CAMEL_STUB_ARG_UINT32, &unread_count,
-				 CAMEL_STUB_ARG_UINT32, &visible_count,
-			      	 CAMEL_STUB_ARG_END)){
-		g_print("\n Error syncing up the counts");
+	if (!(flags & CAMEL_MESSAGE_SEEN)) {
+		folder->summary->unread_count++;
+		folder->summary->visible_count++;
 	}
 
-	folder->summary->unread_count = unread_count;
-	folder->summary->visible_count = visible_count;
-	
 	changes = camel_folder_change_info_new ();
 	camel_folder_change_info_add_uid (changes, uid);
 	camel_folder_change_info_recent_uid (changes, uid);



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