aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/exchange-operations/exchange-folder-permission.c
diff options
context:
space:
mode:
authorShakti Sen <shprasad@novell.com>2005-10-03 19:33:31 +0800
committerShakti Prasad Sen <shaktis@src.gnome.org>2005-10-03 19:33:31 +0800
commit005d9da2a2fb84805166fec46bbf9d10d1b8c94c (patch)
tree76b15af1a76638bbb7bf1a962a2b7993a754926b /plugins/exchange-operations/exchange-folder-permission.c
parentce6a0e927d7d468fdf7469dc6469d497f1f36dba (diff)
downloadgsoc2013-evolution-005d9da2a2fb84805166fec46bbf9d10d1b8c94c.tar
gsoc2013-evolution-005d9da2a2fb84805166fec46bbf9d10d1b8c94c.tar.gz
gsoc2013-evolution-005d9da2a2fb84805166fec46bbf9d10d1b8c94c.tar.bz2
gsoc2013-evolution-005d9da2a2fb84805166fec46bbf9d10d1b8c94c.tar.lz
gsoc2013-evolution-005d9da2a2fb84805166fec46bbf9d10d1b8c94c.tar.xz
gsoc2013-evolution-005d9da2a2fb84805166fec46bbf9d10d1b8c94c.tar.zst
gsoc2013-evolution-005d9da2a2fb84805166fec46bbf9d10d1b8c94c.zip
Constructing the path properly to get the efolder. Creating proper path.
2005-10-03 Shakti Sen <shprasad@novell.com> * exchange-folder-permission.c (org_gnome_exchange_folder_permissions), (org_gnome_exchange_menu_folder_permission): Constructing the path properly to get the efolder. * exchange-folder.c (org_gnome_exchange_folder_inbox_unsubscribe), (exchange_get_folder), (org_gnome_exchange_check_inbox_subscribed), (unsubscribe_dialog_ab_response), (unsubscribe_dialog_response): Creating proper path. The above modifications will now allow the user to do the operations like unsubscribed to Inbox and giving permission to a folder. svn path=/trunk/; revision=30479
Diffstat (limited to 'plugins/exchange-operations/exchange-folder-permission.c')
-rw-r--r--plugins/exchange-operations/exchange-folder-permission.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/plugins/exchange-operations/exchange-folder-permission.c b/plugins/exchange-operations/exchange-folder-permission.c
index 3c930ff026..85703661d4 100644
--- a/plugins/exchange-operations/exchange-folder-permission.c
+++ b/plugins/exchange-operations/exchange-folder-permission.c
@@ -149,13 +149,18 @@ org_gnome_exchange_folder_permissions (EPlugin *ep, EMPopupTargetFolder *target)
GSList *menus = NULL;
int i = 0;
static int first =0;
+ gchar *path = NULL;
ExchangeAccount *account = exchange_operations_get_exchange_account ();
- if (!account || ! g_strrstr (target->uri, "exchange://") ||
- !exchange_account_get_folder (account, target->uri))
+ if (!account)
+ return;
+
+ path = target->uri + strlen ("exchange://") + strlen (account->account_filename);
+ if (! g_strrstr (target->uri, "exchange://") ||
+ !exchange_account_get_folder (account, path))
return ;
- selected_exchange_folder_uri = target->uri;
+ selected_exchange_folder_uri = path;
/* for translation*/
if (!first) {
popup_items[0].label = _(popup_items[0].label);
@@ -191,13 +196,15 @@ org_gnome_exchange_menu_folder_permissions (EPlugin *ep, EMMenuTargetSelect *tar
{
ExchangeAccount *account = NULL;
EFolder *folder = NULL;
+ gchar *path = NULL;
account = exchange_operations_get_exchange_account ();
if (!account)
return;
- folder = exchange_account_get_folder (account, target->uri);
+ path = target->uri + strlen ("exchange://") + strlen (account->account_filename);
+ folder = exchange_account_get_folder (account, path);
if (folder)
exchange_permissions_dialog_new (account, folder, NULL);
}