mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-08 13:27:15 +00:00
See ChangeLog
Monotone-Parent: 73de56ded7f5b5ba79857c706ecef4d70ac3113b Monotone-Revision: 5c6353cb6270d51a457d46a8fe98dadae4f37193 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2011-07-07T13:58:50 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
1 parent
485e53258f
commit
34f2904f0d
9 files changed
+106
-42
No files matched your search
@@ -296,8 +296,12 @@ static NSString *defaultUserID = @"anyone";
|
||||
|
||||
// If we are deleting messages within the Trash folder itself, we
|
||||
// do not, of course, try to move messages to the Trash folder.
|
||||
if (![folderName isEqualToString: [self relativeImap4Name]])
|
||||
{
|
||||
if ([folderName isEqualToString: [self relativeImap4Name]])
|
||||
{
|
||||
withTrash = NO;
|
||||
}
|
||||
else
|
||||
{
|
||||
// If our Trash folder doesn't exist when we try to copy messages
|
||||
// to it, we create it.
|
||||
result = [[client status: folderName flags: [NSArray arrayWithObject: @"UIDVALIDITY"]]
|
||||
@@ -331,11 +335,20 @@ static NSString *defaultUserID = @"anyone";
|
||||
objectForKey: @"result"];
|
||||
if ([result boolValue])
|
||||
{
|
||||
[self markForExpunge];
|
||||
if (trashFolder)
|
||||
[trashFolder flushMailCaches];
|
||||
error = nil;
|
||||
}
|
||||
if (withTrash)
|
||||
{
|
||||
[self markForExpunge];
|
||||
if (trashFolder)
|
||||
[trashFolder flushMailCaches];
|
||||
error = nil;
|
||||
}
|
||||
else
|
||||
{
|
||||
// When not using a trash folder, expunge the current folder
|
||||
// immediately
|
||||
error = [self expunge];
|
||||
}
|
||||
}
|
||||
else
|
||||
error
|
||||
= [NSException exceptionWithHTTPStatus:500
|
||||
|
||||
Reference in new issue
Block a user