diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2001-05-26 01:57:48 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-05-26 01:57:48 +0800 |
commit | bf8462bc71a2cb37a6fbd52e48ea49956e5250ca (patch) | |
tree | 65249e15d326ac11f6c205faf1a8df2660d92beb | |
parent | c43cf87a0ebf8b482b609e76e8246679f3005a8b (diff) | |
download | gsoc2013-evolution-bf8462bc71a2cb37a6fbd52e48ea49956e5250ca.tar.gz gsoc2013-evolution-bf8462bc71a2cb37a6fbd52e48ea49956e5250ca.tar.zst gsoc2013-evolution-bf8462bc71a2cb37a6fbd52e48ea49956e5250ca.zip |
This code should be correct now. Still waiting on the shell to do it's job
2001-05-25 Jeffrey Stedfast <fejj@ximian.com>
* 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
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/component-factory.c | 22 |
2 files changed, 15 insertions, 13 deletions
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 <fejj@ximian.com> + + * 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 <fejj@ximian.com> * 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); } |