evolution r35750 - branches/EXCHANGE_MAPI_BRANCH/plugins/exchange-mapi
- From: msuman svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r35750 - branches/EXCHANGE_MAPI_BRANCH/plugins/exchange-mapi
- Date: Thu, 17 Jul 2008 08:48:37 +0000 (UTC)
Author: msuman
Date: Thu Jul 17 08:48:37 2008
New Revision: 35750
URL: http://svn.gnome.org/viewvc/evolution?rev=35750&view=rev
Log:
Add the ACL properties to the source group as well as they are needed by newly created folders.
Modified:
branches/EXCHANGE_MAPI_BRANCH/plugins/exchange-mapi/ChangeLog
branches/EXCHANGE_MAPI_BRANCH/plugins/exchange-mapi/exchange-account-listener.c
branches/EXCHANGE_MAPI_BRANCH/plugins/exchange-mapi/exchange-mapi-account-setup.c
Modified: branches/EXCHANGE_MAPI_BRANCH/plugins/exchange-mapi/exchange-account-listener.c
==============================================================================
--- branches/EXCHANGE_MAPI_BRANCH/plugins/exchange-mapi/exchange-account-listener.c (original)
+++ branches/EXCHANGE_MAPI_BRANCH/plugins/exchange-mapi/exchange-account-listener.c Thu Jul 17 08:48:37 2008
@@ -245,6 +245,12 @@
e_source_group_set_property (group, "profile", camel_url_get_param (url, "profile"));
e_source_group_set_property (group, "domain", camel_url_get_param (url, "domain"));
+ /* We set these because on new folder creation - these are required. */
+ e_source_group_set_property (group, "acl-user-name", account->id->name);
+ e_source_group_set_property (group, "acl-user-email", account->id->address);
+ e_source_group_set_property (group, "acl-owner-name", account->id->name);
+ e_source_group_set_property (group, "acl-owner-email", account->id->address);
+
for (temp_list = folders; temp_list != NULL; temp_list = g_slist_next (temp_list)) {
ExchangeMAPIFolder *folder = temp_list->data;
ESource *source = NULL;
Modified: branches/EXCHANGE_MAPI_BRANCH/plugins/exchange-mapi/exchange-mapi-account-setup.c
==============================================================================
--- branches/EXCHANGE_MAPI_BRANCH/plugins/exchange-mapi/exchange-mapi-account-setup.c (original)
+++ branches/EXCHANGE_MAPI_BRANCH/plugins/exchange-mapi/exchange-mapi-account-setup.c Thu Jul 17 08:48:37 2008
@@ -754,6 +754,20 @@
e_source_set_property (source, "folder-id", tmp);
g_free (tmp);
+ /* Delegatees can never create folders for delegators. So we can copy safely. */
+ tmp = e_source_group_get_property (grp, "acl-user-name");
+ e_source_set_property (source, "acl-user-name", tmp);
+ g_free (tmp);
+ tmp = e_source_group_get_property (grp, "acl-user-email");
+ e_source_set_property (source, "acl-user-email", tmp);
+ g_free (tmp);
+ tmp = e_source_group_get_property (grp, "acl-owner-name");
+ e_source_set_property (source, "acl-owner-name", tmp);
+ g_free (tmp);
+ tmp = e_source_group_get_property (grp, "acl-owner-email");
+ e_source_set_property (source, "acl-owner-email", tmp);
+ g_free (tmp);
+
// Update the folder list in the plugin and ExchangeMAPIFolder
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]