Fixed IMAP copy/move op between subfolder in different accounts

pull/37/merge
Ludovic Marcotte 2014-05-09 15:40:57 -04:00
parent bc2b41f383
commit 1f5a2a4c62
2 changed files with 6 additions and 1 deletions

1
NEWS
View File

@ -24,6 +24,7 @@ Bug fixes
- fixed display of images in CSS background (#2437)
- fixed limitation of Sieve script size (#2745)
- fixed sync-token generation when no change was returned (#2492)
- fixed the IMAP copy/move operation between subfolders in different accounts
2.2.3 (2014-04-03)
------------------

View File

@ -660,8 +660,12 @@ static NSString *defaultUserID = @"anyone";
// Destination folder is in a different account
SOGoMailAccounts *accounts;
SOGoMailAccount *account;
accounts = [[self container] container];
SOGoUserFolder *userFolder;
userFolder = [[context activeUser] homeFolderInContext: context];
accounts = [userFolder lookupName: @"Mail" inContext: context acquire: NO];
account = [accounts lookupName: [folders objectAtIndex: 1] inContext: localContext acquire: NO];
if ([account isKindOfClass: [NSException class]])
{
result = [NSException exceptionWithHTTPStatus: 500