mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-21 19:35:38 +00:00
fix(mail): delete msgs once moved to an external account
This commit is contained in:
@@ -769,6 +769,17 @@ static NSInteger _compareFetchResultsByUID (id entry1, id entry2, NSArray *uids)
|
||||
[self logWithFormat: @"ERROR: Can't append message: %@", result];
|
||||
}
|
||||
}
|
||||
if (!copy && result == nil)
|
||||
{
|
||||
// Delete messages
|
||||
result = [client storeFlags: [NSArray arrayWithObject: @"Deleted"]
|
||||
forUIDs: uids addOrRemove: YES];
|
||||
if ([[result valueForKey: @"result"] boolValue])
|
||||
{
|
||||
[self markForExpunge];
|
||||
result = nil;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user