From a2f50bb029eaa8b8c0804a5788302dc15105a3ed Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 23 May 2001 22:43:03 +0000 Subject: New function that the shell component calls to copy/move a folder. 2001-05-23 Jeffrey Stedfast * component-factory.c (xfer_folder): New function that the shell component calls to copy/move a folder. (component_fn): Set the xfer_folder_fn argument. * mail-ops.c (mail_remove_folder): New async function to remove a folder. God knows if it does what the ShellComponent needs or not yet. (mail_xfer_folder): Yet another yummy async function to move or copy a folder to a new location. * component-factory.c (storage_remove_folder): New function for removing folders. (remove_folder): New function that the shell component calls to delete a folder. (component_fn): Set the remove_folder_fn argument. svn path=/trunk/; revision=9954 --- mail/mail-ops.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mail/mail-ops.h') diff --git a/mail/mail-ops.h b/mail/mail-ops.h index 305dae6b77..e6677c4443 100644 --- a/mail/mail-ops.h +++ b/mail/mail-ops.h @@ -100,6 +100,12 @@ void mail_remove_folder (const char *uri, void (*done) (char *uri, gboolean removed, void *data), void *data); +/* transfer (copy/move) a folder */ +void mail_xfer_folder (const char *src_uri, const char *dest_uri, gboolean remove_source, + void (*done) (char *src_uri, char *dest_uri, gboolean remove_source, + CamelFolder *folder, void *data), + void *data); + /* save messages */ int mail_save_messages (CamelFolder *folder, GPtrArray *uids, const char *path, void (*done) (CamelFolder *folder, GPtrArray *uids, char *path, void *data), -- cgit v1.2.3