diff options
author | Sushma Rai <rsushma@src.gnome.org> | 2006-04-10 11:54:09 +0800 |
---|---|---|
committer | Sushma Rai <rsushma@src.gnome.org> | 2006-04-10 11:54:09 +0800 |
commit | a7373b94386efc63050f6194e72a80e622b3938c (patch) | |
tree | 2189060c5a5a40ba2725687f4a359570097cfb6b /plugins/exchange-operations/exchange-operations.c | |
parent | 09c279136cbb72cf162c439b114942860b21a60a (diff) | |
download | gsoc2013-evolution-a7373b94386efc63050f6194e72a80e622b3938c.tar.gz gsoc2013-evolution-a7373b94386efc63050f6194e72a80e622b3938c.tar.zst gsoc2013-evolution-a7373b94386efc63050f6194e72a80e622b3938c.zip |
Handling rename opearion for public and subscribed folders.
Fixes #328813 and #315522.
svn path=/trunk/; revision=31792
Diffstat (limited to 'plugins/exchange-operations/exchange-operations.c')
-rw-r--r-- | plugins/exchange-operations/exchange-operations.c | 19 |
1 files changed, 19 insertions, 0 deletions
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 <glib/gi18n.h> #include "exchange-operations.h" +#include <e-folder-exchange.h> +#include <exchange-hierarchy.h> #include <e-util/e-error.h> 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; +} |