fix(mail): delete msgs once moved to an external account

This commit is contained in:
Francis Lachapelle
2021-12-02 17:11:13 -05:00
parent 8724f90dd1
commit e0df54838e
+11
View File
@@ -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
{