From ab318a91925aa31a10e0b225d2ef7fd9b0fa9a4c Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 5 Feb 2004 05:14:04 +0000 Subject: ** See bug #53553. 2004-02-05 Not Zed ** See bug #53553. * camel-provider.c (camel_provider_init): changed to return a hashtable of url protocols to CamelProviderModule structs, rather than simple strings. * camel-session.c (get_provider): if we load a provider module, mark it as loaded. (ensure_loaded): Check the module loaded flag before trying to load it. * providers/local/libcamellocal.urls: Remove spoold from the list, since it doesn't exist anymore. Actually fixes #53553, the rest is to robustify the code. 2004-02-05 Not Zed * camel-session.c (CS_CLASS): dont typecheck cast. * camel-store.c (camel_vjunk_folder_new): removed, use vtrash_new(junk). (setup_special): changed to get_special, with a type now, and dont add vtrash folders to the sources. (get_trash, get_junk): down to 1 liners, call get_special * camel-vtrash-folder.c (CF_CLASS): dont use cast typecheck macros here, makes debugging easier and removes redundant checks. (camel_vtrash_folder_init): dont set flags here. (camel_vtrash_folder_new): takes a new argument, type, for junk folders too, removed name arg (taken from type). (vtrash_transfer_messages_to): parameterise flag processing. svn path=/trunk/; revision=24625 --- camel/providers/local/camel-local-provider.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'camel/providers/local/camel-local-provider.c') diff --git a/camel/providers/local/camel-local-provider.c b/camel/providers/local/camel-local-provider.c index a52dfbde5f..fc33f34f58 100644 --- a/camel/providers/local/camel-local-provider.c +++ b/camel/providers/local/camel-local-provider.c @@ -192,7 +192,12 @@ local_url_equal(const void *v, const void *v2) void camel_provider_module_init(CamelSession * session) { char *path; - + static int init = 0; + + if (init) + abort(); + init = 1; + mh_conf_entries[0].value = ""; /* default path */ mh_provider.object_types[CAMEL_PROVIDER_STORE] = camel_mh_store_get_type (); mh_provider.url_hash = local_url_hash; -- cgit v1.2.3