From 1aba985def3755dbc5f9c49caee5207aa80e5d94 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 26 Feb 2001 17:35:53 +0000 Subject: Re-add the mail_vtrash_create() hack back in for LocalStores since there's 2001-02-25 Jeffrey Stedfast * component-factory.c (owner_set_cb): Re-add the mail_vtrash_create() hack back in for LocalStores since there's no better way to register a vTrash folder on the Local Storage yet. * mail-local.c (register_folder_registered): Add folders to the vTrash folder here since the LocalStore does not let the parent CamelStore class keep it's own hash of the folders. svn path=/trunk/; revision=8391 --- mail/mail-vtrash.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'mail/mail-vtrash.c') diff --git a/mail/mail-vtrash.c b/mail/mail-vtrash.c index bc26afd9a5..565f60dd98 100644 --- a/mail/mail-vtrash.c +++ b/mail/mail-vtrash.c @@ -42,6 +42,16 @@ extern char *evolution_dir; extern CamelSession *session; + +/** + * mail_vtrash_add: add a "vTrash" folder on the EvolutionStorage + * @store: the CamelStore that the vTrash exists on + * @store_uri: the URL of the store + * @name: the name to give the vTrash folder + * + * Creates the vTrash folder for the provided store in the folder view + * (EvolutionStorage) and creates the URL for that vTrash folder. + **/ void mail_vtrash_add (CamelStore *store, const char *store_uri, const char *name) { @@ -73,7 +83,7 @@ mail_vtrash_add (CamelStore *store, const char *store_uri, const char *name) struct _get_trash_msg { struct _mail_msg msg; - + CamelStore *store; char *store_uri; char *name; @@ -136,6 +146,16 @@ static struct _mail_msg_op get_trash_op = { get_trash_free, }; + +/** + * mail_vtrash_create: Create a vTrash folder + * @store_uri: URL of the CamelStore + * @name: name to give the vTrash folder + * + * Async function to lookup the CamelStore corresponding to @store_uri + * and then calls mail_vtrash_add() to create the vTrash folder/URL on + * the EvolutionStorage. + **/ int mail_vtrash_create (const char *store_uri, const char *name) { -- cgit v1.2.3