From 586f083c3ab79ada76433afbe8529050f2cd5e31 Mon Sep 17 00:00:00 2001 From: 0 Date: Thu, 20 Sep 2001 22:59:11 +0000 Subject: Lock around hashtable/list manipulation. Also dont try scan vfolder_hash 2001-09-20 * mail-vfolder.c (vfolder_register_source): Lock around hashtable/list manipulation. Also dont try scan vfolder_hash if it hasn't been setup yet. (source_finalise): Lock around list access. (rule_changed): Lock around hash access. (context_rule_added): Lock around hash access. (context_rule_removed): " (rule_changed): Lock around list access. * mail-local.c (storage_listener_startup): Fix for api change. (local_storage_new_folder_cb): Dont skip over leading / in path. (local_storage_removed_folder_cb): ditto. * mail-folder-cache.c (create_folders): No longer pass prefix between recursive calls - we have the path in the folderinfo. (setup_folder): No longer take path arg, we get it from folderinfo. (mail_note_folder): No longer take path arg, we use folder->full_name to key the folder table. (mail_note_store): Consolidate note_store interface, pass storage or corba_storage to it. (mail_note_local_store): Removed. * mail-ops.c (add_unmatched_info): Scan for unmatched name and re-title. svn path=/trunk/; revision=13023 --- mail/mail-local.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'mail/mail-local.c') diff --git a/mail/mail-local.c b/mail/mail-local.c index ddbdc26c2e..20562d83dd 100644 --- a/mail/mail-local.c +++ b/mail/mail-local.c @@ -938,9 +938,6 @@ local_storage_new_folder_cb (EvolutionStorageListener *storage_listener, if (strcmp (folder->type, "mail") != 0) return; - if (path[0] == '/') - path++; - d(printf("Local folder new:\n")); d(printf(" path = '%s'\n uri = '%s'\n display = '%s'\n", path, folder->physicalUri, folder->displayName)); @@ -956,9 +953,6 @@ local_storage_removed_folder_cb (EvolutionStorageListener *storage_listener, const char *path, void *data) { - if (path[0] == '/') - path++; - d(printf("Local folder remove:\n")); d(printf(" path = '%s'\n", path)); @@ -982,7 +976,7 @@ storage_listener_startup (EvolutionShellClient *shellclient) } /* setup to record this store's changes */ - mail_note_local_store((CamelStore *)global_local_store, local_corba_storage); + mail_note_store((CamelStore *)global_local_store, NULL, local_corba_storage); local_storage_listener = evolution_storage_listener_new (); corba_local_storage_listener = evolution_storage_listener_corba_objref ( -- cgit v1.2.3