diff options
author | Shakti Sen <shprasad@novell.com> | 2005-10-03 19:33:31 +0800 |
---|---|---|
committer | Shakti Prasad Sen <shaktis@src.gnome.org> | 2005-10-03 19:33:31 +0800 |
commit | 005d9da2a2fb84805166fec46bbf9d10d1b8c94c (patch) | |
tree | 76b15af1a76638bbb7bf1a962a2b7993a754926b /plugins/exchange-operations/exchange-folder.c | |
parent | ce6a0e927d7d468fdf7469dc6469d497f1f36dba (diff) | |
download | gsoc2013-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.c')
-rw-r--r-- | plugins/exchange-operations/exchange-folder.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/exchange-operations/exchange-folder.c b/plugins/exchange-operations/exchange-folder.c index bfdf2babee..1c6eeaeccf 100644 --- a/plugins/exchange-operations/exchange-folder.c +++ b/plugins/exchange-operations/exchange-folder.c @@ -91,7 +91,7 @@ org_gnome_exchange_folder_inbox_unsubscribe (EPopup *ep, EPopupItem *p, void *da return; target_uri = g_strdup (target->uri); - path = target->uri + strlen ("exchange://") + strlen (account->account_filename) + strlen ("/;"); + path = target->uri + strlen ("exchange://") + strlen (account->account_filename); /* User will be able to unsubscribe by doing a right click on any one of this two-<other user's>Inbox or the <other user's folder> tree. @@ -179,7 +179,7 @@ exchange_get_folder (char *uri, CamelFolder *folder, void *data) return; /* Get the subscribed folder name. */ - name = target_uri + strlen ("exchange://") + strlen (account->account_filename) + strlen ("/;"); + name = target_uri + strlen ("exchange://") + strlen (account->account_filename); stored_name = strrchr (name + 1, '/'); if (stored_name) @@ -209,7 +209,7 @@ org_gnome_exchange_check_inbox_subscribed (EPlugin *ep, EMPopupTargetFolder *tar if (!account) return; - path = g_strdup (target->uri + strlen ("exchange://") + strlen (account->account_filename) + strlen ("/;")); + path = g_strdup (target->uri + strlen ("exchange://") + strlen (account->account_filename)); sub_folder = strchr (path, '@'); g_free (path); @@ -347,7 +347,7 @@ unsubscribe_dialog_ab_response (GtkDialog *dialog, int response, gpointer data) source = e_source_selector_peek_primary_selection (E_SOURCE_SELECTOR (target->selector)); uri = e_source_get_uri (source); - path = g_strdup (uri + strlen ("exchange://") + strlen (account->account_filename) + strlen ("/;")); + path = g_strdup (uri + strlen ("exchange://") + strlen (account->account_filename)); source_uid = e_source_peek_uid (source); exchange_account_remove_shared_folder (account, path); @@ -389,7 +389,7 @@ unsubscribe_dialog_response (GtkDialog *dialog, int response, gpointer data) ruri = (gchar *) e_source_peek_relative_uri (source); source_uid = e_source_peek_uid (source); - path = g_strdup (ruri + strlen (account->account_filename) + strlen ("/;")); + path = g_strdup (ruri + strlen (account->account_filename)); exchange_account_remove_shared_folder (account, path); ids = gconf_client_get_list (client, CONF_KEY_SELECTED_CAL_SOURCES, |