evolution-data-server r9474 - trunk/camel/providers/imap
- From: mcrha svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r9474 - trunk/camel/providers/imap
- Date: Wed, 3 Sep 2008 08:55:26 +0000 (UTC)
Author: mcrha
Date: Wed Sep 3 08:55:26 2008
New Revision: 9474
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9474&view=rev
Log:
2008-09-03 Milan Crha <mcrha redhat com>
** Fix for bug #548343
* camel-imap-store.c: (fill_fi): Do not read summary information for
the folder from DB when we have it fresh in memory already.
Modified:
trunk/camel/providers/imap/ChangeLog
trunk/camel/providers/imap/camel-imap-store.c
Modified: trunk/camel/providers/imap/camel-imap-store.c
==============================================================================
--- trunk/camel/providers/imap/camel-imap-store.c (original)
+++ trunk/camel/providers/imap/camel-imap-store.c Wed Sep 3 08:55:26 2008
@@ -2598,12 +2598,17 @@
folder = camel_object_bag_peek(store->folders, fi->full_name);
if (folder) {
CamelImapSummary *ims;
- ims = (CamelImapSummary *) camel_imap_summary_new (folder, NULL);
+
+ if (folder->summary)
+ ims = (CamelImapSummary *) folder->summary;
+ else
+ ims = (CamelImapSummary *) camel_imap_summary_new (folder, NULL);
fi->unread = ((CamelFolderSummary *)ims)->unread_count;
fi->total = ((CamelFolderSummary *)ims)->saved_count;
- camel_object_unref(ims);
+ if (!folder->summary)
+ camel_object_unref (ims);
camel_object_unref(folder);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]