evolution-data-server r9378 - trunk/camel/providers/local



Author: sragavan
Date: Mon Aug 18 10:35:55 2008
New Revision: 9378
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9378&view=rev

Log:
2008-08-18  Srinivasa Ragavan  <sragavan novell com>

	* camel/providers/local/camel-mbox-summary.c: When required just save
	the header and not all.


Modified:
   trunk/camel/providers/local/ChangeLog
   trunk/camel/providers/local/camel-mbox-summary.c

Modified: trunk/camel/providers/local/camel-mbox-summary.c
==============================================================================
--- trunk/camel/providers/local/camel-mbox-summary.c	(original)
+++ trunk/camel/providers/local/camel-mbox-summary.c	Mon Aug 18 10:35:55 2008
@@ -1021,6 +1021,7 @@
 	size_t len;
 	const char *fromline;
 	int lastdel = FALSE;
+	gboolean touched = FALSE;
 #ifdef STATUS_PINE
 	char statnew[8], xstatnew[8];
 #endif
@@ -1100,6 +1101,7 @@
 			i--;
 			info = NULL;
 			lastdel = TRUE;
+			touched = TRUE;
 		} else {
 			/* otherwise, the message is staying, copy its From_ line across */
 #if 0
@@ -1195,7 +1197,9 @@
 		}
 	}
 	
-	camel_folder_summary_save_to_db (s, ex);
+	if (touched)
+		camel_folder_summary_header_save_to_db (s, ex);
+
 	return 0;
  error:
 	g_free(xevnew);



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