evolution-data-server r9366 - trunk/camel/providers/local
- From: sragavan svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r9366 - trunk/camel/providers/local
- Date: Mon, 18 Aug 2008 05:02:01 +0000 (UTC)
Author: sragavan
Date: Mon Aug 18 05:02:01 2008
New Revision: 9366
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=9366&view=rev
Log:
2008-08-18 Srinivasa Ragavan <sragavan novell com>
* camel/providers/local/camel-mbox-summary.c: Fix counts while
expunging.
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 05:02:01 2008
@@ -1231,13 +1231,21 @@
lastdel = FALSE;
if ((flags&1) && info->info.info.flags & CAMEL_MESSAGE_DELETED) {
const char *uid = camel_message_info_uid(info);
-
+ guint32 flags = camel_message_info_flags(info);
+ int read, junk;
d(printf("Deleting %s\n", uid));
if (((CamelLocalSummary *)cls)->index)
camel_index_delete_name(((CamelLocalSummary *)cls)->index, uid);
/* remove it from the change list */
+ junk = flags & CAMEL_MESSAGE_JUNK;
+ read = flags & CAMEL_MESSAGE_SEEN;
+ s->saved_count--;
+ if (junk)
+ s->junk_count--;
+ if (!read)
+ s->unread_count--;
camel_folder_change_info_remove_uid(changeinfo, uid);
camel_folder_summary_remove(s, (CamelMessageInfo *)info);
camel_message_info_free((CamelMessageInfo *)info);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]