See ChangeLog

Monotone-Parent: 8027e57cbf5cbb4ab2ee6bf9509fe2f571f150c1
Monotone-Revision: 0ffde732abb09a8e3d0382ed47a3ec787f25796e

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2011-09-14T18:33:44
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Ludovic Marcotte
2011-09-14 18:33:44 +00:00
parent 8fb4411dd6
commit 057a38355b
22 changed files with 713 additions and 47 deletions

View File

@@ -24,6 +24,7 @@
#import <NGExtensions/NSObject+Logs.h>
#import <SOGo/SOGoContentObject.h>
#import "MAPIStoreContext.h"
#import "MAPIStoreGCSFolder.h"
#import "MAPIStoreTypes.h"
@@ -34,6 +35,16 @@
@implementation MAPIStoreGCSMessage
- (id) init
{
if ((self = [super init]))
{
_version = 0xffffffffffffffffLL;
}
return self;
}
- (NSCalendarDate *) creationTime
{
return [sogoObject creationDate];
@@ -48,8 +59,20 @@
{
uint64_t version = 0xffffffffffffffffLL;
NSNumber *changeNumber;
if (![sogoObject isNew])
if ([sogoObject isNew])
{
#if 0
if (_version == 0xffffffffffffffffLL)
{
_version = [[self context] getNewChangeNumber];
[(MAPIStoreGCSFolder *)[self container] setInitialVersion: _version
forMessage: [self nameInContainer]];
}
version = _version;
#endif
}
else
{
changeNumber = [(MAPIStoreGCSFolder *) container
changeNumberForMessageWithKey: [self nameInContainer]];
@@ -66,7 +89,7 @@
else
{
[self errorWithFormat: @"still nothing. We crash!"];
abort ();
abort();
}
}
version = [changeNumber unsignedLongLongValue] >> 16;