2011-02-24 21:32:27 +01:00
|
|
|
/* MAPIStoreFolder.m - this file is part of SOGo
|
|
|
|
*
|
|
|
|
* Copyright (C) 2011 Inverse inc
|
|
|
|
*
|
|
|
|
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
|
|
|
*
|
|
|
|
* This file is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
* any later version.
|
|
|
|
*
|
|
|
|
* This file is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; see the file COPYING. If not, write to
|
|
|
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* TODO: main key arrays must be initialized */
|
|
|
|
|
|
|
|
#import <Foundation/NSArray.h>
|
2011-06-07 02:17:46 +02:00
|
|
|
#import <Foundation/NSDictionary.h>
|
2011-02-24 21:32:27 +01:00
|
|
|
#import <Foundation/NSException.h>
|
|
|
|
#import <Foundation/NSString.h>
|
|
|
|
#import <Foundation/NSURL.h>
|
|
|
|
#import <NGExtensions/NSObject+Logs.h>
|
|
|
|
#import <SOGo/SOGoFolder.h>
|
|
|
|
|
2011-05-31 05:39:36 +02:00
|
|
|
#import "MAPIStoreActiveTables.h"
|
2011-02-24 21:32:27 +01:00
|
|
|
#import "MAPIStoreContext.h"
|
2011-03-07 20:15:16 +01:00
|
|
|
#import "MAPIStoreFAIMessage.h"
|
|
|
|
#import "MAPIStoreFAIMessageTable.h"
|
2011-02-24 21:32:27 +01:00
|
|
|
#import "MAPIStoreFolder.h"
|
|
|
|
#import "MAPIStoreMessage.h"
|
|
|
|
#import "MAPIStoreTypes.h"
|
2011-06-07 02:17:46 +02:00
|
|
|
#import "NSDate+MAPIStore.h"
|
2011-02-24 21:32:27 +01:00
|
|
|
#import "NSString+MAPIStore.h"
|
2011-06-07 02:17:46 +02:00
|
|
|
#import "NSObject+MAPIStore.h"
|
2011-02-24 21:32:27 +01:00
|
|
|
#import "SOGoMAPIFSFolder.h"
|
|
|
|
#import "SOGoMAPIFSMessage.h"
|
|
|
|
|
|
|
|
#include <gen_ndr/exchange.h>
|
|
|
|
|
|
|
|
#undef DEBUG
|
|
|
|
#include <mapistore/mapistore.h>
|
|
|
|
#include <mapistore/mapistore_nameid.h>
|
2011-06-07 02:17:46 +02:00
|
|
|
#include <mapistore/mapistore_errors.h>
|
2011-02-24 21:32:27 +01:00
|
|
|
|
2011-03-07 20:15:16 +01:00
|
|
|
Class NSExceptionK, MAPIStoreMessageTableK, MAPIStoreFAIMessageTableK, MAPIStoreFolderTableK;
|
2011-02-24 21:32:27 +01:00
|
|
|
|
|
|
|
@implementation MAPIStoreFolder
|
|
|
|
|
|
|
|
+ (void) initialize
|
|
|
|
{
|
|
|
|
NSExceptionK = [NSException class];
|
2011-03-07 20:15:16 +01:00
|
|
|
MAPIStoreMessageTableK = [MAPIStoreMessageTable class];
|
|
|
|
MAPIStoreFAIMessageTableK = [MAPIStoreFAIMessageTable class];
|
|
|
|
MAPIStoreFolderTableK = [MAPIStoreFolderTable class];
|
2011-02-24 21:32:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
+ (id) baseFolderWithURL: (NSURL *) newURL
|
|
|
|
inContext: (MAPIStoreContext *) newContext
|
|
|
|
{
|
|
|
|
id newFolder;
|
|
|
|
|
|
|
|
newFolder = [[self alloc] initWithURL: newURL inContext: newContext];
|
|
|
|
[newFolder autorelease];
|
|
|
|
|
|
|
|
return newFolder;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (id) init
|
|
|
|
{
|
|
|
|
if ((self = [super init]))
|
|
|
|
{
|
|
|
|
messageKeys = nil;
|
|
|
|
faiMessageKeys = nil;
|
|
|
|
folderKeys = nil;
|
|
|
|
faiFolder = nil;
|
|
|
|
folderURL = nil;
|
|
|
|
context = nil;
|
2011-03-07 20:15:16 +01:00
|
|
|
|
2011-06-07 02:17:46 +02:00
|
|
|
propsFolder = nil;
|
|
|
|
propsMessage = nil;
|
2011-02-24 21:32:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
2011-06-07 02:17:46 +02:00
|
|
|
/* from context */
|
2011-02-24 21:32:27 +01:00
|
|
|
- (id) initWithURL: (NSURL *) newURL
|
|
|
|
inContext: (MAPIStoreContext *) newContext
|
|
|
|
{
|
|
|
|
if ((self = [self init]))
|
|
|
|
{
|
|
|
|
context = newContext;
|
|
|
|
ASSIGN (folderURL, newURL);
|
|
|
|
ASSIGN (faiFolder,
|
|
|
|
[SOGoMAPIFSFolder folderWithURL: newURL
|
|
|
|
andTableType: MAPISTORE_FAI_TABLE]);
|
2011-06-07 02:17:46 +02:00
|
|
|
ASSIGN (propsFolder,
|
|
|
|
[SOGoMAPIFSFolder folderWithURL: newURL
|
|
|
|
andTableType: MAPISTORE_FOLDER_TABLE]);
|
|
|
|
ASSIGN (propsMessage,
|
|
|
|
[SOGoMAPIFSMessage objectWithName: @"properties.plist"
|
|
|
|
inContainer: propsFolder]);
|
|
|
|
}
|
|
|
|
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* from parent folder */
|
|
|
|
- (id) initWithSOGoObject: (id) newSOGoObject
|
|
|
|
inContainer: (MAPIStoreObject *) newContainer
|
|
|
|
{
|
|
|
|
NSURL *propsURL;
|
|
|
|
|
|
|
|
if ((self = [super initWithSOGoObject: newSOGoObject inContainer: newContainer]))
|
|
|
|
{
|
|
|
|
propsURL = [NSURL URLWithString: [self url]];
|
|
|
|
ASSIGN (propsFolder,
|
|
|
|
[SOGoMAPIFSFolder folderWithURL: propsURL
|
|
|
|
andTableType: MAPISTORE_FOLDER_TABLE]);
|
|
|
|
ASSIGN (propsMessage,
|
|
|
|
[SOGoMAPIFSMessage objectWithName: @"properties.plist"
|
|
|
|
inContainer: propsFolder]);
|
2011-02-24 21:32:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
2011-06-07 02:17:46 +02:00
|
|
|
- (int) setProperties: (struct SRow *) aRow
|
|
|
|
{
|
|
|
|
static enum MAPITAGS bannedProps[] = { PR_MID, PR_FID, PR_PARENT_FID,
|
|
|
|
PR_SOURCE_KEY, PR_PARENT_SOURCE_KEY,
|
|
|
|
PR_CHANGE_NUM, PR_CHANGE_KEY,
|
|
|
|
0x00000000 };
|
|
|
|
enum MAPITAGS *currentProp;
|
|
|
|
int rc;
|
|
|
|
|
|
|
|
rc = [super setProperties: aRow];
|
|
|
|
|
|
|
|
/* TODO: this should no longer be required once mapistore v2 API is in
|
|
|
|
place, when we can then do this from -dealloc below */
|
|
|
|
if ([newProperties count] > 0)
|
|
|
|
{
|
|
|
|
currentProp = bannedProps;
|
|
|
|
while (*currentProp)
|
|
|
|
{
|
|
|
|
[newProperties removeObjectForKey: MAPIPropertyKey (*currentProp)];
|
|
|
|
currentProp++;
|
|
|
|
}
|
|
|
|
|
|
|
|
[propsMessage appendProperties: newProperties];
|
|
|
|
[propsMessage save];
|
|
|
|
[self resetNewProperties];
|
|
|
|
}
|
|
|
|
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
2011-02-24 21:32:27 +01:00
|
|
|
- (void) dealloc
|
|
|
|
{
|
2011-06-07 02:17:46 +02:00
|
|
|
[propsMessage release];
|
|
|
|
[propsFolder release];
|
2011-02-24 21:32:27 +01:00
|
|
|
[folderURL release];
|
|
|
|
[messageKeys release];
|
|
|
|
[faiMessageKeys release];
|
|
|
|
[folderKeys release];
|
|
|
|
[faiFolder release];
|
2011-03-07 20:15:16 +01:00
|
|
|
|
2011-02-24 21:32:27 +01:00
|
|
|
[super dealloc];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (MAPIStoreContext *) context
|
|
|
|
{
|
|
|
|
if (!context)
|
|
|
|
context = [container context];
|
|
|
|
|
|
|
|
return context;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSArray *) messageKeys
|
|
|
|
{
|
|
|
|
if (!messageKeys)
|
|
|
|
{
|
|
|
|
messageKeys = [self childKeysMatchingQualifier: nil
|
|
|
|
andSortOrderings: nil];
|
|
|
|
[messageKeys retain];
|
|
|
|
}
|
|
|
|
|
|
|
|
return messageKeys;
|
|
|
|
}
|
|
|
|
|
2011-03-07 20:15:16 +01:00
|
|
|
- (MAPIStoreFAIMessageTable *) faiMessageTable
|
2011-02-24 21:32:27 +01:00
|
|
|
{
|
2011-03-07 20:15:16 +01:00
|
|
|
return [MAPIStoreFAIMessageTable tableForContainer: self];
|
2011-02-24 21:32:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
- (NSArray *) faiMessageKeys
|
|
|
|
{
|
|
|
|
if (!faiMessageKeys)
|
|
|
|
{
|
|
|
|
faiMessageKeys = [faiFolder toOneRelationshipKeys];
|
|
|
|
[faiMessageKeys retain];
|
|
|
|
}
|
|
|
|
|
|
|
|
return faiMessageKeys;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (MAPIStoreFolderTable *) folderTable
|
|
|
|
{
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSArray *) folderKeys
|
|
|
|
{
|
2011-03-07 20:15:16 +01:00
|
|
|
return nil;
|
|
|
|
}
|
2011-02-24 21:32:27 +01:00
|
|
|
|
2011-03-07 20:15:16 +01:00
|
|
|
- (NSArray *) activeMessageTables
|
|
|
|
{
|
2011-05-31 05:39:36 +02:00
|
|
|
return [[MAPIStoreActiveTables activeTables]
|
|
|
|
activeTablesForFMID: [self objectId]
|
|
|
|
andType: MAPISTORE_MESSAGE_TABLE];
|
2011-03-07 20:15:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
- (NSArray *) activeFAIMessageTables
|
|
|
|
{
|
2011-05-31 05:39:36 +02:00
|
|
|
return [[MAPIStoreActiveTables activeTables]
|
|
|
|
activeTablesForFMID: [self objectId]
|
|
|
|
andType: MAPISTORE_FAI_TABLE];
|
2011-03-07 20:15:16 +01:00
|
|
|
}
|
|
|
|
|
2011-05-31 05:39:36 +02:00
|
|
|
- (void) _cleanupTableCaches: (uint8_t) tableType
|
2011-03-07 20:15:16 +01:00
|
|
|
{
|
2011-05-31 05:39:36 +02:00
|
|
|
NSArray *tables;
|
2011-03-07 20:15:16 +01:00
|
|
|
NSUInteger count, max;
|
|
|
|
|
2011-05-31 05:39:36 +02:00
|
|
|
tables = [[MAPIStoreActiveTables activeTables]
|
|
|
|
activeTablesForFMID: [self objectId]
|
|
|
|
andType: tableType];
|
|
|
|
max = [tables count];
|
2011-03-07 20:15:16 +01:00
|
|
|
for (count = 0; count < max; count++)
|
2011-05-31 05:39:36 +02:00
|
|
|
[[tables objectAtIndex: count] cleanupCaches];
|
2011-02-24 21:32:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
- (void) cleanupCaches
|
|
|
|
{
|
2011-05-31 05:39:36 +02:00
|
|
|
[self _cleanupTableCaches: MAPISTORE_MESSAGE_TABLE];
|
|
|
|
[self _cleanupTableCaches: MAPISTORE_FAI_TABLE];
|
|
|
|
[self _cleanupTableCaches: MAPISTORE_FOLDER_TABLE];
|
2011-02-24 21:32:27 +01:00
|
|
|
[faiMessageKeys release];
|
|
|
|
faiMessageKeys = nil;
|
|
|
|
[messageKeys release];
|
|
|
|
messageKeys = nil;
|
|
|
|
[folderKeys release];
|
|
|
|
folderKeys = nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (id) lookupChild: (NSString *) childKey
|
|
|
|
{
|
|
|
|
MAPIStoreObject *newChild;
|
|
|
|
SOGoObject *msgObject;
|
|
|
|
|
|
|
|
if (childKey)
|
|
|
|
{
|
|
|
|
[self faiMessageKeys];
|
|
|
|
if ([faiMessageKeys containsObject: childKey])
|
|
|
|
{
|
|
|
|
msgObject = [faiFolder lookupName: childKey
|
2011-06-07 02:17:46 +02:00
|
|
|
inContext: nil
|
|
|
|
acquire: NO];
|
2011-02-24 21:32:27 +01:00
|
|
|
newChild
|
2011-03-07 20:15:16 +01:00
|
|
|
= [MAPIStoreFAIMessage mapiStoreObjectWithSOGoObject: msgObject
|
|
|
|
inContainer: self];
|
2011-02-24 21:32:27 +01:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
msgObject = [sogoObject lookupName: childKey
|
2011-06-07 02:17:46 +02:00
|
|
|
inContext: nil
|
|
|
|
acquire: NO];
|
2011-02-24 21:32:27 +01:00
|
|
|
if ([msgObject isKindOfClass: NSExceptionK])
|
|
|
|
msgObject = nil;
|
|
|
|
|
|
|
|
if (msgObject)
|
|
|
|
newChild
|
|
|
|
= [[self messageClass] mapiStoreObjectWithSOGoObject: msgObject
|
|
|
|
inContainer: self];
|
|
|
|
else
|
|
|
|
newChild = nil;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
newChild = nil;
|
|
|
|
|
|
|
|
return newChild;
|
|
|
|
}
|
|
|
|
|
2011-06-07 02:17:46 +02:00
|
|
|
- (int) getPrParentFid: (void **) data
|
|
|
|
{
|
|
|
|
*data = MAPILongLongValue (memCtx, [container objectId]);
|
|
|
|
|
|
|
|
return MAPISTORE_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (int) getPrFid: (void **) data
|
|
|
|
{
|
|
|
|
*data = MAPILongLongValue (memCtx, [self objectId]);
|
|
|
|
|
|
|
|
return MAPISTORE_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (int) getPrAccess: (void **) data
|
|
|
|
{
|
|
|
|
*data = MAPILongValue (memCtx, 0x63);
|
|
|
|
|
|
|
|
return MAPISTORE_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (int) getPrAccessLevel: (void **) data
|
|
|
|
{
|
|
|
|
*data = MAPILongValue (memCtx, 0x01);
|
|
|
|
|
|
|
|
return MAPISTORE_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (int) getPrAttrHidden: (void **) data
|
|
|
|
{
|
|
|
|
return [self getNo: data];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (int) getPrAttrSystem: (void **) data
|
|
|
|
{
|
|
|
|
return [self getNo: data];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (int) getPrAttrReadOnly: (void **) data
|
|
|
|
{
|
|
|
|
return [self getNo: data];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (int) getPrSubfolders: (void **) data
|
|
|
|
{
|
|
|
|
*data = MAPIBoolValue (memCtx, [folderKeys count] > 0);
|
|
|
|
|
|
|
|
return MAPISTORE_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (int) getPrFolderChildCount: (void **) data;
|
|
|
|
{
|
|
|
|
*data = MAPILongValue (memCtx, [[self folderKeys] count]);
|
|
|
|
|
|
|
|
return MAPISTORE_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (int) getPrContentCount: (void **) data
|
|
|
|
{
|
|
|
|
*data = MAPILongValue (memCtx, [[self messageKeys] count]);
|
|
|
|
|
|
|
|
return MAPISTORE_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (int) getPrContentUnread: (void **) data
|
|
|
|
{
|
|
|
|
*data = MAPILongValue (memCtx, 0);
|
|
|
|
|
|
|
|
return MAPISTORE_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (int) getPrAssocContentCount: (void **) data
|
|
|
|
{
|
|
|
|
*data = MAPILongValue (memCtx, [[self faiMessageKeys] count]);
|
|
|
|
|
|
|
|
return MAPISTORE_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (int) getPrDeletedCountTotal: (void **) data
|
|
|
|
{
|
|
|
|
/* TODO */
|
|
|
|
*data = MAPILongValue (memCtx, 0);
|
|
|
|
|
|
|
|
return MAPISTORE_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (int) getPrLocalCommitTimeMax: (void **) data
|
|
|
|
{
|
|
|
|
*data = [[self lastMessageModificationTime] asFileTimeInMemCtx: memCtx];
|
|
|
|
|
|
|
|
return MAPISTORE_SUCCESS;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (int) getProperty: (void **) data
|
|
|
|
withTag: (enum MAPITAGS) propTag
|
2011-02-24 21:32:27 +01:00
|
|
|
{
|
|
|
|
int rc;
|
2011-06-07 02:17:46 +02:00
|
|
|
id value;
|
2011-02-24 21:32:27 +01:00
|
|
|
|
2011-06-07 02:17:46 +02:00
|
|
|
value = [[propsMessage properties]
|
|
|
|
objectForKey: MAPIPropertyKey (propTag)];
|
|
|
|
if (value)
|
|
|
|
rc = [value getMAPIValue: data forTag: propTag inMemCtx: memCtx];
|
|
|
|
else
|
|
|
|
rc = [super getProperty: data withTag: propTag];
|
2011-02-24 21:32:27 +01:00
|
|
|
|
|
|
|
return rc;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (MAPIStoreMessage *) _createAssociatedMessage
|
|
|
|
{
|
|
|
|
MAPIStoreMessage *newMessage;
|
|
|
|
SOGoMAPIFSMessage *fsObject;
|
|
|
|
NSString *newKey;
|
|
|
|
|
|
|
|
newKey = [NSString stringWithFormat: @"%@.plist",
|
|
|
|
[SOGoObject globallyUniqueObjectId]];
|
|
|
|
fsObject = [SOGoMAPIFSMessage objectWithName: newKey inContainer: faiFolder];
|
2011-03-07 20:15:16 +01:00
|
|
|
newMessage = [MAPIStoreFAIMessage mapiStoreObjectWithSOGoObject: fsObject
|
|
|
|
inContainer: self];
|
2011-02-24 21:32:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
return newMessage;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (MAPIStoreMessage *) createMessage: (BOOL) isAssociated
|
|
|
|
{
|
|
|
|
MAPIStoreMessage *newMessage;
|
|
|
|
|
|
|
|
if (isAssociated)
|
|
|
|
newMessage = [self _createAssociatedMessage];
|
|
|
|
else
|
|
|
|
newMessage = [self createMessage];
|
2011-03-07 20:15:16 +01:00
|
|
|
[newMessage setIsNew: YES];
|
2011-02-24 21:32:27 +01:00
|
|
|
|
|
|
|
return newMessage;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSString *) createFolder: (struct SRow *) aRow
|
2011-06-07 02:17:46 +02:00
|
|
|
withFID: (uint64_t) newFID
|
2011-02-24 21:32:27 +01:00
|
|
|
{
|
|
|
|
[self errorWithFormat: @"new folders cannot be created in this context"];
|
|
|
|
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* helpers */
|
|
|
|
|
|
|
|
- (NSString *) url
|
|
|
|
{
|
|
|
|
NSString *url;
|
|
|
|
|
|
|
|
if (folderURL)
|
|
|
|
url = [folderURL absoluteString];
|
|
|
|
else
|
|
|
|
url = [NSString stringWithFormat: @"%@/", [super url]];
|
|
|
|
|
|
|
|
return url;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (uint64_t) objectId
|
|
|
|
{
|
|
|
|
uint64_t objectId;
|
|
|
|
|
|
|
|
if (folderURL)
|
|
|
|
objectId = [self idForObjectWithKey: nil];
|
|
|
|
else
|
|
|
|
objectId = [super objectId];
|
|
|
|
|
|
|
|
return objectId;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (uint64_t) idForObjectWithKey: (NSString *) childKey
|
|
|
|
{
|
|
|
|
return [[self context] idForObjectWithKey: childKey
|
|
|
|
inFolderURL: [self url]];
|
|
|
|
}
|
|
|
|
|
2011-06-07 02:17:46 +02:00
|
|
|
- (NSCalendarDate *) creationTime
|
|
|
|
{
|
|
|
|
return [propsMessage creationTime];
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSCalendarDate *) lastModificationTime
|
|
|
|
{
|
|
|
|
return [propsMessage lastModificationTime];
|
|
|
|
}
|
|
|
|
|
2011-02-24 21:32:27 +01:00
|
|
|
/* subclasses */
|
|
|
|
|
|
|
|
- (MAPIStoreMessageTable *) messageTable
|
|
|
|
{
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (Class) messageClass
|
|
|
|
{
|
|
|
|
[self subclassResponsibility: _cmd];
|
|
|
|
|
|
|
|
return Nil;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (MAPIStoreMessage *) createMessage
|
|
|
|
{
|
2011-04-19 23:42:02 +02:00
|
|
|
[self logWithFormat: @"ignored method: %s", __PRETTY_FUNCTION__];
|
2011-02-24 21:32:27 +01:00
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
2011-06-07 02:17:46 +02:00
|
|
|
- (NSCalendarDate *) lastMessageModificationTime
|
|
|
|
{
|
|
|
|
[self subclassResponsibility: _cmd];
|
|
|
|
|
|
|
|
return nil;
|
|
|
|
}
|
|
|
|
|
2011-02-24 21:32:27 +01:00
|
|
|
@end
|