From dfc6c01cf945c1d3b12a16f151a693d778892b7f Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 28 Nov 2000 18:04:16 +0000 Subject: Fix the initial unread counts after the last patch. * mail-local.c (cleanup_register_folder): Fix the initial unread counts after the last patch. svn path=/trunk/; revision=6697 --- mail/mail-local.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mail/mail-local.c') diff --git a/mail/mail-local.c b/mail/mail-local.c index 666cfefbbd..cc34a61a7d 100644 --- a/mail/mail-local.c +++ b/mail/mail-local.c @@ -707,6 +707,7 @@ cleanup_register_folder (gpointer in_data, gpointer op_data, CamelException *ex) { MailLocalFolder *local_folder = in_data; + int unread; if (!local_folder->folder) { g_free (local_folder); @@ -720,8 +721,10 @@ cleanup_register_folder (gpointer in_data, gpointer op_data, camel_object_hook_event (CAMEL_OBJECT (local_folder->folder), "folder_changed", local_folder_changed_proxy, local_folder); + unread = local_folder->last_unread; + local_folder->last_unread = 0; local_folder_changed (CAMEL_OBJECT (local_folder->folder), - NULL, local_folder); + GINT_TO_POINTER (unread), local_folder); } static const mail_operation_spec op_register_folder = -- cgit v1.2.3