Monotone-Parent: 426b535e2da36fbf5368515550e8353fd5148bc7

Monotone-Revision: 325588b39d451a573e15dab87f6ccb9fd342a2f0

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-09-10T15:08:32
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-09-10 15:08:32 +00:00
parent 848b3ce639
commit ab5c142dd8
6 changed files with 456 additions and 541 deletions
-17
View File
@@ -883,10 +883,6 @@ static BOOL debugSoParts = NO;
error = [[self imap4Connection] markURLDeleted: [self imap4URL]];
if (error != nil) return error;
/* c) expunge */
error = [[self imap4Connection] expungeAtURL:[[self container] imap4URL]];
if (error != nil) return error; // TODO: unflag as deleted?
[self flushMailCaches];
return nil;
@@ -895,15 +891,6 @@ static BOOL debugSoParts = NO;
- (NSException *) moveToFolderNamed: (NSString *) folderName
inContext: (id)_ctx
{
/*
Trashing is three actions:
a) copy to trash folder
b) mark mail as deleted
c) expunge folder
In case b) or c) fails, we can't do anything because IMAP4 doesn't tell us
the ID used in the trash folder.
*/
SOGoMailAccounts *destFolder;
NSEnumerator *folders;
NSString *currentFolderName, *reason;
@@ -947,11 +934,7 @@ static BOOL debugSoParts = NO;
error = [[self imap4Connection] markURLDeleted: [self imap4URL]];
if (error != nil) return error;
/* c) expunge */
error = [[self imap4Connection] expungeAtURL:[[self container] imap4URL]];
if (error != nil) return error; // TODO: unflag as deleted?
[self flushMailCaches];
return nil;