From 510f0e2810860e5584d0b68d81a94dc18b1bb750 Mon Sep 17 00:00:00 2001 From: dev_amdtel Date: Fri, 17 Oct 2014 20:34:57 +0400 Subject: [PATCH] fix2 exchange 2013 public folders --- .../Exchange2013.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Exchange2013/Exchange2013.cs b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Exchange2013/Exchange2013.cs index 16de69ee..e456ea3e 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Exchange2013/Exchange2013.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Exchange2013/Exchange2013.cs @@ -4402,10 +4402,6 @@ namespace WebsitePanel.Providers.HostedSolution if (mailEnabled) { EnableMailPublicFolderInternal(organizationId, id, accountName, name, domain); - - // exchange transport needs access to create new items in order to deliver email - AddPublicFolderClientPermission(runSpace, parentFolder, "Anonymous", "CreateItems"); - AddPublicFolderClientPermission(runSpace, id, "Anonymous", "CreateItems"); } } @@ -4700,6 +4696,10 @@ namespace WebsitePanel.Providers.HostedSolution ExchangeLog.LogWarning("Attemp {0} to update mail public folder {1}", attempts, folder); System.Threading.Thread.Sleep(5000); } + + // exchange transport needs access to create new items in order to deliver email + AddPublicFolderClientPermission(runSpace, folder, "Anonymous", "CreateItems"); + } finally {