Show as active (color) the accounts that have new messages
[modest] / src / modest-mail-operation.c
index 9a38bcf..7eef26e 100644 (file)
@@ -1773,6 +1773,8 @@ inbox_refreshed_cb (TnyFolder *inbox,
                new_headers_iter = tny_list_create_iterator (((InternalFolderObserver *) info->inbox_observer)->new_headers);
                if (!tny_iterator_is_done (new_headers_iter)) {
                        modest_platform_emit_folder_updated_signal (info->account_name, tny_folder_get_id (TNY_FOLDER (inbox)));
+                       modest_account_mgr_set_has_new_mails (modest_runtime_get_account_mgr (),
+                                                             info->account_name, TRUE);
                }
                while (!tny_iterator_is_done (new_headers_iter)) {
                        TnyHeader *header = NULL;