From f665251bcf9820840d406d096358034178e1ab40 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 2 Nov 2000 03:56:41 +0000 Subject: Make "Get Mail" even more functional on IMAP (scans all folders), and do a first cut at folder tree highlighting (for IMAP/news only). * mail-ops.c (do_fetch_mail): For imap (sigh, we *still* shouldn't be hardcoding that), rescan the store's folder tree, rescan each changed folder for new messages, and update the shell folder tree. (do_scan_subfolders): Update for component-factory.c changes, and set folder display names and highlights appropriately when building the storage. * component-factory.c (add_storage): Make this static (was mail_add_new_storage). Use camel_service_get_name for the name rather than url->host. (Among other things, this lets you use a single machine as both an IMAP server and a news server.) (mail_lookup_storage): Hash storages based on their CamelStore rather than the URL. (factory_destroy): Disconnect each of the CamelStores in the storages_hash. * subscribe-dialog.c (cleanup_subscribe_folder): * mail-vfolder.c (vfolder_refresh): Pass "highlighted" flag to evolution_storage_new_folder svn path=/trunk/; revision=6342 --- mail/subscribe-dialog.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mail/subscribe-dialog.c') diff --git a/mail/subscribe-dialog.c b/mail/subscribe-dialog.c index 30327b0fef..e74ab4f1bd 100644 --- a/mail/subscribe-dialog.c +++ b/mail/subscribe-dialog.c @@ -319,7 +319,8 @@ cleanup_subscribe_folder (gpointer in_data, gpointer op_data, data->path, data->name, "mail", data->url, - _("(No description)") /* XXX */); + _("(No description)") /* XXX */, + FALSE); if (input->cb) input->cb (input->sc, !camel_exception_is_set(ex), input->cb_data); @@ -838,7 +839,7 @@ build_tree (SubscribeDialog *sc, CamelStore *store) gtk_object_unref (GTK_OBJECT (sc->storage)); sc->store = store; - sc->storage = mail_lookup_storage (CAMEL_SERVICE (sc->store)); + sc->storage = mail_lookup_storage (sc->store); sc->folder_info = camel_store_get_folder_info (sc->store, sc->search_top, TRUE, TRUE, FALSE, ex); if (camel_exception_is_set (ex)) { -- cgit v1.2.3