From fa2c19fdd1aee26d8bf5b622a3adf970004c3abf Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Fri, 9 Feb 2001 16:45:09 +0000 Subject: Updates for CamelStore changes, small memory leak fixes. (lookup_folder): * mail-local.c: Updates for CamelStore changes, small memory leak fixes. (lookup_folder): Removed (and moved into the reconfigure code) since this method no longer exists in CamelStore. (do_reconfigure_folder, etc): Update the info in the MailLocalStore after reconfiguring. (mail_local_lookup_folder): Removed * local-config.glade: fix padding of the label_format * message-list.c (ml_tree_value_at): Don't keep message infos reffed across calls, since this can cause badness after a reconfigure. Instead, just strdup the needed values and free those on the next call. * mail-tools.c (mail_tool_get_root_of_store): Unused, remove. (mail_tool_get_inbox): use camel_store_get_inbox. * evolution-outlook-importer.c (load_file_fn): * evolution-mbox-importer.c (load_file_fn): Use mail_tool_get_local_inbox() instead of mail_importer_get_folder() * mail-importer.c (mail_importer_get_folder): Removed svn path=/trunk/; revision=8147 --- mail/mail-importer.c | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'mail/mail-importer.c') diff --git a/mail/mail-importer.c b/mail/mail-importer.c index 3c02576599..b46c4ccc50 100644 --- a/mail/mail-importer.c +++ b/mail/mail-importer.c @@ -87,42 +87,6 @@ mail_importer_add_line (MailImporter *importer, g_free (info); } -/** - * mail_importer_get_folder: - * @name: The folder name. - * *opt_ex: A #CamelException, or NULL if you don't care about errors. - * - * Gets the local folder called @name. - * - * Returns: A CamelFolder (which needs to be unrefed when you are done with it) - * on success, or NULL on fail. A more detailed error is given in @opt_ex, if - * @opt_ex is not NULL. - */ -CamelFolder * -mail_importer_get_folder (const char *name, - CamelException *opt_ex) -{ - CamelFolder *folder; - CamelException *real_ex; - char *path, *tmp; - - if (opt_ex != NULL) - real_ex = opt_ex; - else - real_ex = camel_exception_new (); - - g_print ("Evolution_dir: %s\n", evolution_dir); - tmp = g_concat_dir_and_file (evolution_dir, "local"); - path = g_concat_dir_and_file (tmp, name); - g_free (tmp); - - folder = mail_local_lookup_folder (path + 1, real_ex); - if (opt_ex == NULL) - camel_exception_free (real_ex); - - return folder; -} - /** * mail_importer_init: * -- cgit v1.2.3