diff --git a/NEWS b/NEWS index bae4a7cd6..808c508e6 100644 --- a/NEWS +++ b/NEWS @@ -8,6 +8,7 @@ Enhancements - Appointment color and importance work now between Outlooks Bug fixes + - Sent mails are not longer in Drafts folder using Outlook - Fix sender on importing email messages like event invitations - Fix Outlook crashes when modifying the view of a folder - Fix server side crash when reading some recurrence appointments diff --git a/OpenChange/MAPIStoreMailFolder.m b/OpenChange/MAPIStoreMailFolder.m index 0a439e29e..5c70dc634 100644 --- a/OpenChange/MAPIStoreMailFolder.m +++ b/OpenChange/MAPIStoreMailFolder.m @@ -1163,13 +1163,20 @@ _parseCOPYUID (NSString *line, NSArray **destUIDsP) if (![[result objectForKey: @"result"] boolValue]) return MAPISTORE_ERROR; - /* "Move" treatment: Store \Deleted and unregister urls */ + /* "Move" treatment: Store \Deleted and unregister urls as soft-deleted */ if (!wantCopy) { [client storeFlags: [NSArray arrayWithObject: @"Deleted"] forUIDs: uids addOrRemove: YES]; for (count = 0; count < midCount; count++) - [mapping unregisterURLWithID: srcMids[count]]; + { + /* Using soft-deleted to make deleted fmids to return the + srcMids. + See [MAPIStoreFolder getDeletedFMIDs:andCN:fromChangeNumber:inTableType:inMemCtx] + for details */ + [mapping unregisterURLWithID: srcMids[count] + andFlags: MAPISTORE_SOFT_DELETE]; + } } /* Registration of target messages */