diff --git a/NEWS b/NEWS index 8b396584d..de3f185d6 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,7 @@ Enhancements - Improve sync speed from Outlook by non-reprocessing already downloaded unread mails Bug fixes + - Does not create a mail folder in other user's mailbox - Fix server-side crash with invalid events - Fix setting permissions for a folder with several users - Fix reception of calendar event invitations on optional attendees diff --git a/OpenChange/MAPIStoreMailFolder.m b/OpenChange/MAPIStoreMailFolder.m index f0a6c33bc..e8f25e183 100644 --- a/OpenChange/MAPIStoreMailFolder.m +++ b/OpenChange/MAPIStoreMailFolder.m @@ -179,6 +179,12 @@ static Class SOGoMailFolderK, MAPIStoreMailFolderK, MAPIStoreOutboxFolderK; { nameInContainer = [NSString stringWithFormat: @"folder%@", [[folderName stringByEncodingImap4FolderName] asCSSIdentifier]]; + + /* it may be the operation is interleaved with operations + from other users having cached information in the thread + with the other user, so it'd better activate the user again here... */ + [[self userContext] activateWithUser: [[[self userContext] woContext] activeUser]]; + newFolder = [SOGoMailFolderK objectWithName: nameInContainer inContainer: sogoObject]; if ([newFolder create])