Skip to content

Commit

Permalink
fix(mail): delete msgs once moved to an external account
Browse files Browse the repository at this point in the history
  • Loading branch information
cgx committed Dec 2, 2021
1 parent 8724f90 commit e0df548
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions SoObjects/Mailer/SOGoMailFolder.m
Expand Up @@ -769,6 +769,17 @@ - (WOResponse *) moveUIDs: (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
{
Expand Down

0 comments on commit e0df548

Please sign in to comment.