Monotone-Parent: 14109a6df43dc184c83153fd032827c7dc242db9

Monotone-Revision: 128103783f98ef7a97e614a54b987851cefbaf36

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-12-01T22:36:35
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2011-12-01 22:36:35 +00:00
parent e846ec1b8c
commit eff11b0b9c
4 changed files with 275 additions and 189 deletions
+16
View File
@@ -21,6 +21,7 @@
*/
#import "MAPIStoreActiveTables.h"
#import "MAPIStoreContext.h"
#import "NSObject+MAPIStore.h"
#import "MAPIStoreFAIMessage.h"
@@ -29,6 +30,7 @@
#include <talloc.h>
#include <util/time.h>
#include <mapistore/mapistore.h>
#include <mapistore/mapistore_errors.h>
@implementation MAPIStoreFAIMessage
@@ -45,4 +47,18 @@
return [self getYes: data inMemCtx: memCtx];
}
- (enum mapistore_error) saveMessage
{
enum mapistore_error rc;
MAPIStoreContext *context;
context = [self context];
if ([[context activeUser] isEqual: [context ownerUser]])
rc = [super saveMessage];
else
rc = MAPISTORE_ERR_DENIED;
return rc;
}
@end