Monotone-Parent: 22a3b958acddeb274e788d95f5da332880c64d78

Monotone-Revision: 1036da510d0360f1e473b578044e95ac7792871f

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-08-14T20:15:15
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2012-08-14 20:15:15 +00:00
parent 07a376b461
commit 992c95f9a0
2 changed files with 17 additions and 7 deletions

View File

@ -1,3 +1,10 @@
2012-08-14 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/MAPIStoreMailFolder.m (-
moveCopyMessagesWithMIDs:andCount:fromFolder:withMIDs:andChangeKeys:wantCopy:):
do not attempt to access targetChangeKeys when NULL, to avoid a
SEGFAULT.
2012-08-13 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* OpenChange/MAPIStoreSOGo.m (sogo_properties_get_uri): removed

View File

@ -985,14 +985,17 @@ _parseCOPYUID (NSString *line, NSArray **destUIDsP)
}
/* Update the change keys */
[self synchroniseCache];
for (count = 0; count < midCount; count++)
if (targetChangeKeys)
{
changeKey = [NSData dataWithBinary: targetChangeKeys[count]];
messageKey = [NSString stringWithFormat: @"%@.eml",
[destUIDs objectAtIndex: count]];
[self setChangeKey: changeKey
forMessageWithKey: messageKey];
[self synchroniseCache];
for (count = 0; count < midCount; count++)
{
changeKey = [NSData dataWithBinary: targetChangeKeys[count]];
messageKey = [NSString stringWithFormat: @"%@.eml",
[destUIDs objectAtIndex: count]];
[self setChangeKey: changeKey
forMessageWithKey: messageKey];
}
}
[self postNotificationsForMoveCopyMessagesWithMIDs: srcMids