mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 19:05:25 +00:00
Monotone-Parent: 2fea5fbc833aa109f5048dda8ddd9884c91385e1
Monotone-Revision: 3227626c75075b7ce019ef85ce3b7ddbd4c461f7 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-08-13T03:58:14 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1009,13 +1009,16 @@ _parseCOPYUID (NSString *line, NSArray **destUIDsP)
|
||||
enum mapistore_error rc;
|
||||
NSURL *folderURL, *newFolderURL;
|
||||
SOGoMailFolder *targetSOGoFolder;
|
||||
NSString *newURL;
|
||||
NSException *error;
|
||||
MAPIStoreMapping *mapping;
|
||||
|
||||
if ([targetFolder isKindOfClass: MAPIStoreMailFolderK])
|
||||
{
|
||||
folderURL = [sogoObject imap4URL];
|
||||
if (!newFolderName)
|
||||
newFolderName = [sogoObject nameInContainer];
|
||||
newFolderName = [[sogoObject nameInContainer]
|
||||
substringFromIndex: 6]; /* length of "folder" */
|
||||
targetSOGoFolder = [targetFolder sogoObject];
|
||||
newFolderURL = [NSURL URLWithString: newFolderName
|
||||
relativeToURL: [targetSOGoFolder imap4URL]];
|
||||
@@ -1025,7 +1028,15 @@ _parseCOPYUID (NSString *line, NSArray **destUIDsP)
|
||||
if (error)
|
||||
rc = MAPISTORE_ERR_DENIED;
|
||||
else
|
||||
rc = MAPISTORE_SUCCESS;
|
||||
{
|
||||
rc = MAPISTORE_SUCCESS;
|
||||
mapping = [self mapping];
|
||||
newURL = [NSString stringWithFormat: @"%@folder%@/",
|
||||
[targetFolder url],
|
||||
[newFolderName stringByEscapingURL]];
|
||||
[mapping updateID: [self objectId]
|
||||
withURL: newURL];
|
||||
}
|
||||
}
|
||||
else
|
||||
rc = MAPISTORE_ERR_DENIED;
|
||||
|
||||
Reference in New Issue
Block a user