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
This commit is contained in:
committed by
Jeffrey Stedfast
parent
c43cf87a0e
commit
bf8462bc71
@ -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
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user