aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/exchange-operations/exchange-folder.c
diff options
context:
space:
mode:
authorSushma Rai <rsushma@src.gnome.org>2006-02-03 18:27:26 +0800
committerSushma Rai <rsushma@src.gnome.org>2006-02-03 18:27:26 +0800
commitb6bd229a92c52d21cc8e4f47a9fef79baaeff19b (patch)
tree5de9a7e30aae07f6dd63466d98a8b09879535cbb /plugins/exchange-operations/exchange-folder.c
parent009f31fcc347dda1652d673b17fc0cf98249d12b (diff)
downloadgsoc2013-evolution-b6bd229a92c52d21cc8e4f47a9fef79baaeff19b.tar
gsoc2013-evolution-b6bd229a92c52d21cc8e4f47a9fef79baaeff19b.tar.gz
gsoc2013-evolution-b6bd229a92c52d21cc8e4f47a9fef79baaeff19b.tar.bz2
gsoc2013-evolution-b6bd229a92c52d21cc8e4f47a9fef79baaeff19b.tar.lz
gsoc2013-evolution-b6bd229a92c52d21cc8e4f47a9fef79baaeff19b.tar.xz
gsoc2013-evolution-b6bd229a92c52d21cc8e4f47a9fef79baaeff19b.tar.zst
gsoc2013-evolution-b6bd229a92c52d21cc8e4f47a9fef79baaeff19b.zip
Fixed the issue with subscribing to other user's folders. (#328554)
svn path=/trunk/; revision=31401
Diffstat (limited to 'plugins/exchange-operations/exchange-folder.c')
-rw-r--r--plugins/exchange-operations/exchange-folder.c43
1 files changed, 1 insertions, 42 deletions
diff --git a/plugins/exchange-operations/exchange-folder.c b/plugins/exchange-operations/exchange-folder.c
index e0d5a1d459..a7669e7d6b 100644
--- a/plugins/exchange-operations/exchange-folder.c
+++ b/plugins/exchange-operations/exchange-folder.c
@@ -546,9 +546,6 @@ void
org_gnome_exchange_folder_subscription (EPlugin *ep, EMMenuTargetSelect *target, gchar *fname)
{
ExchangeAccount *account = NULL;
- EFolder *folder = NULL;
- ExchangeAccountFolderResult result;
- gchar *user_email_address = NULL, *folder_name = NULL;
gint mode;
ExchangeConfigListenerStatus status;
@@ -573,45 +570,7 @@ org_gnome_exchange_folder_subscription (EPlugin *ep, EMMenuTargetSelect *target,
return;
}
- create_folder_subscription_dialog (account->account_name, fname, &user_email_address, &folder_name);
-
- if (user_email_address && folder_name) {
- result = exchange_account_discover_shared_folder (account, user_email_address, folder_name, &folder);
-
- switch (result) {
- case EXCHANGE_ACCOUNT_FOLDER_OK:
- break;
- case EXCHANGE_ACCOUNT_FOLDER_ALREADY_EXISTS:
- e_error_run (NULL, ERROR_DOMAIN ":folder-exists-error", NULL);
- return;
- case EXCHANGE_ACCOUNT_FOLDER_DOES_NOT_EXIST:
- e_error_run (NULL, ERROR_DOMAIN ":folder-doesnt-exist-error", NULL);
- return;
- case EXCHANGE_ACCOUNT_FOLDER_UNKNOWN_TYPE:
- e_error_run (NULL, ERROR_DOMAIN ":folder-unknown-type", NULL);
- return;
- case EXCHANGE_ACCOUNT_FOLDER_PERMISSION_DENIED:
- e_error_run (NULL, ERROR_DOMAIN ":folder-perm-error", NULL);
- return;
- case EXCHANGE_ACCOUNT_FOLDER_OFFLINE:
- e_error_run (NULL, ERROR_DOMAIN ":folder-offline-error", NULL);
- return;
- case EXCHANGE_ACCOUNT_FOLDER_UNSUPPORTED_OPERATION:
- e_error_run (NULL, ERROR_DOMAIN ":folder-unsupported-error", NULL);
- return;
- case EXCHANGE_ACCOUNT_FOLDER_GENERIC_ERROR:
- e_error_run (NULL, ERROR_DOMAIN ":folder-generic-error", NULL);
- return;
- default:
- break;
- }
- }
-
- if (!folder) {
- return;
- }
-
- exchange_account_open_folder (account, g_strdup_printf ("/%s", user_email_address));
+ create_folder_subscription_dialog (account, fname);
}
void