From a7373b94386efc63050f6194e72a80e622b3938c Mon Sep 17 00:00:00 2001 From: Sushma Rai Date: Mon, 10 Apr 2006 03:54:09 +0000 Subject: Handling rename opearion for public and subscribed folders. Fixes #328813 and #315522. svn path=/trunk/; revision=31792 --- plugins/exchange-operations/exchange-operations.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'plugins/exchange-operations/exchange-operations.c') diff --git a/plugins/exchange-operations/exchange-operations.c b/plugins/exchange-operations/exchange-operations.c index 86d1830388..57340d4ccc 100644 --- a/plugins/exchange-operations/exchange-operations.c +++ b/plugins/exchange-operations/exchange-operations.c @@ -23,6 +23,8 @@ #include #include "exchange-operations.h" +#include +#include #include ExchangeConfigListener *exchange_global_config_listener=NULL; @@ -281,3 +283,20 @@ void exchange_operations_update_child_esources (ESource *source, const gchar *ol } } } + +gboolean +is_exchange_personal_folder (ExchangeAccount *account, char *uri) +{ + ExchangeHierarchy *hier; + EFolder *folder; + + folder = exchange_account_get_folder (account, uri); + if (folder) { + hier = e_folder_exchange_get_hierarchy (folder); + if (hier->type != EXCHANGE_HIERARCHY_PERSONAL) + return FALSE; + else + return TRUE; + } + return FALSE; +} -- cgit v1.2.3