From 80237e0c26dd375b0269dc2099d49fc3cd50a4f2 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 12 Oct 2000 13:48:36 +0000 Subject: Duh, fix the test for the folder name, strstr != strcmp is it. 2000-10-12 Not Zed * message-list.c (message_list_setup_etable): Duh, fix the test for the folder name, strstr != strcmp is it. 2000-10-10 Not Zed * message-list.c (folder_to_cachename): Removed, changed callers to use mail_config_folder_to_cachename instead. * mail-config.c (mail_config_folder_to_cachename): New utility function to get a cache name for a folder. * mail-tools.c (mail_tool_do_movemail): Changed to return the path to the mbox, rather than opening a folder of it. * mail-ops.c (mail_incorporate_messages): Dont bother making the pseudo messageinfo, filder_driver_filter_message will do it for us. (report_status): Callback to report status of filtering operation. (do_fetch_mail): Changed significantly - for the api changes to the filtering system. Also now incorporates a mailbox file directly, without having to import it into a camel folder first. (mail_incorporate_messages): Removed entirely, no longer needed. * mail-vfolder.c (vfolder_refresh): Fix for context api changes. (vfolder_uri_to_folder): Likewise. * folder-browser-factory.c (create_ondemand_hooks): Changed for api changes. Also only adds demand filters to the menu (fixed a small logic bug). svn path=/trunk/; revision=5883 --- mail/mail-tools.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'mail/mail-tools.c') diff --git a/mail/mail-tools.c b/mail/mail-tools.c index 2646a8ad41..ccbcce3d1d 100644 --- a/mail/mail-tools.c +++ b/mail/mail-tools.c @@ -178,7 +178,8 @@ mail_tool_get_inbox (const gchar *url, CamelException *ex) } -CamelFolder * +/* why is this function so stupidly complex when allthe work is done elsehwere? */ +char * mail_tool_do_movemail (const gchar *source_url, CamelException *ex) { gchar *dest_url; @@ -232,18 +233,14 @@ mail_tool_do_movemail (const gchar *source_url, CamelException *ex) return NULL; } - g_free (dest_path); - if (camel_exception_is_set (ex)) { g_free (dest_url); + g_free (dest_path); return NULL; } - /* Get the CamelFolder for our dest_path. */ - - ret = mail_tool_get_folder_from_urlname (dest_url, "movemail", TRUE, ex); g_free (dest_url); - return ret; + return dest_path; } void -- cgit