From bf8462bc71a2cb37a6fbd52e48ea49956e5250ca Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 25 May 2001 17:57:48 +0000 Subject: This code should be correct now. Still waiting on the shell to do it's job 2001-05-25 Jeffrey Stedfast * component-factory.c (xfer_folder): This code should be correct now. Still waiting on the shell to do it's job of creating the metadata xml file in the destination folder though. svn path=/trunk/; revision=9981 --- mail/ChangeLog | 6 ++++++ mail/component-factory.c | 22 +++++++++------------- 2 files changed, 15 insertions(+), 13 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 9b0869e030..930617b985 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2001-05-25 Jeffrey Stedfast + + * component-factory.c (xfer_folder): This code should be correct + now. Still waiting on the shell to do it's job of creating the + metadata xml file in the destination folder though. + 2001-05-24 Jeffrey Stedfast * message-list.c (message_list_select_uid): g_strdup the uid into diff --git a/mail/component-factory.c b/mail/component-factory.c index 312bcf3054..0cbaaf3c41 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -129,10 +129,10 @@ do_create_folder (char *uri, CamelFolder *folder, void *data) else result = GNOME_Evolution_ShellComponentListener_INVALID_URI; - CORBA_exception_init(&ev); - GNOME_Evolution_ShellComponentListener_notifyResult(listener, result, &ev); - CORBA_Object_release(listener, &ev); - CORBA_exception_free(&ev); + CORBA_exception_init (&ev); + GNOME_Evolution_ShellComponentListener_notifyResult (listener, result, &ev); + CORBA_Object_release (listener, &ev); + CORBA_exception_free (&ev); } static void @@ -145,7 +145,7 @@ create_folder (EvolutionShellComponent *shell_component, char *uri; CORBA_Environment ev; - CORBA_exception_init(&ev); + CORBA_exception_init (&ev); if (!strcmp (type, "mail")) { uri = g_strdup_printf ("mbox://%s", physical_uri); mail_create_folder (uri, do_create_folder, CORBA_Object_duplicate (listener, &ev)); @@ -156,7 +156,7 @@ create_folder (EvolutionShellComponent *shell_component, GNOME_Evolution_ShellComponentListener_notifyResult ( listener, GNOME_Evolution_ShellComponentListener_UNSUPPORTED_TYPE, &ev); } - CORBA_exception_free(&ev); + CORBA_exception_free (&ev); } static void @@ -188,6 +188,8 @@ remove_folder (EvolutionShellComponent *shell_component, CORBA_exception_init (&ev); + g_warning ("removing folder: %s", physical_uri); + uri = g_strdup_printf ("file://%s", physical_uri); mail_remove_folder (uri, do_remove_folder, CORBA_Object_duplicate (listener, &ev)); GNOME_Evolution_ShellComponentListener_notifyResult (listener, @@ -223,18 +225,12 @@ xfer_folder (EvolutionShellComponent *shell_component, void *closure) { CORBA_Environment ev; - char *dest_uri; CORBA_exception_init (&ev); - - dest_uri = g_strdup_printf ("mbox://%s", destination_physical_uri); - mail_xfer_folder (source_physical_uri, dest_uri, remove_source, do_xfer_folder, + mail_xfer_folder (source_physical_uri, destination_physical_uri, remove_source, do_xfer_folder, CORBA_Object_duplicate (listener, &ev)); - g_free (dest_uri); - GNOME_Evolution_ShellComponentListener_notifyResult (listener, GNOME_Evolution_ShellComponentListener_OK, &ev); - CORBA_exception_free (&ev); } -- cgit v1.2.3