diff --git a/SoObjects/Mailer/SOGoMailFolder.m b/SoObjects/Mailer/SOGoMailFolder.m index 6a93b43e9c..ae189839f1 100644 --- a/SoObjects/Mailer/SOGoMailFolder.m +++ b/SoObjects/Mailer/SOGoMailFolder.m @@ -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 {