diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/mail-local.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index d7b1bc3179..c63eb13543 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2000-11-28 Dan Winship <danw@helixcode.com> + + * mail-local.c (cleanup_register_folder): Fix the initial unread + counts after the last patch. + 2000-11-27 Dan Winship <danw@helixcode.com> * mail-local.c (local_folder_changed): This needs to run from the 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 = |