Embedded message can always be "saved"
This commit is contained in:
parent
80a41a07c3
commit
1f8f31daff
|
@ -35,6 +35,7 @@
|
||||||
#import "MAPIStoreAttachment.h"
|
#import "MAPIStoreAttachment.h"
|
||||||
#import "MAPIStoreAttachmentTable.h"
|
#import "MAPIStoreAttachmentTable.h"
|
||||||
#import "MAPIStoreContext.h"
|
#import "MAPIStoreContext.h"
|
||||||
|
#import "MAPIStoreEmbeddedMessage.h"
|
||||||
#import "MAPIStoreFolder.h"
|
#import "MAPIStoreFolder.h"
|
||||||
#import "MAPIStoreMessageTable.h"
|
#import "MAPIStoreMessageTable.h"
|
||||||
#import "MAPIStorePropertySelectors.h"
|
#import "MAPIStorePropertySelectors.h"
|
||||||
|
@ -55,8 +56,9 @@
|
||||||
#include <mapistore/mapistore.h>
|
#include <mapistore/mapistore.h>
|
||||||
#include <mapistore/mapistore_errors.h>
|
#include <mapistore/mapistore_errors.h>
|
||||||
|
|
||||||
|
static Class MAPIStoreFolderK, MAPIStoreEmbeddedMessageK;
|
||||||
|
|
||||||
static NSString *resourcesDir = nil;
|
static NSString *resourcesDir = nil;
|
||||||
static Class MAPIStoreFolderK = nil;
|
|
||||||
|
|
||||||
/* rtf conversion via unrtf */
|
/* rtf conversion via unrtf */
|
||||||
static int
|
static int
|
||||||
|
@ -132,6 +134,7 @@ rtf2html (NSData *compressedRTF)
|
||||||
[resourcesDir retain];
|
[resourcesDir retain];
|
||||||
}
|
}
|
||||||
MAPIStoreFolderK = [MAPIStoreFolder class];
|
MAPIStoreFolderK = [MAPIStoreFolder class];
|
||||||
|
MAPIStoreEmbeddedMessageK = [MAPIStoreEmbeddedMessage class];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (id) init
|
- (id) init
|
||||||
|
@ -474,6 +477,7 @@ rtf2html (NSData *compressedRTF)
|
||||||
context = [self context];
|
context = [self context];
|
||||||
ownerUser = [[self userContext] sogoUser];
|
ownerUser = [[self userContext] sogoUser];
|
||||||
if ([[context activeUser] isEqual: ownerUser]
|
if ([[context activeUser] isEqual: ownerUser]
|
||||||
|
|| [self isKindOfClass: MAPIStoreEmbeddedMessageK]
|
||||||
|| ((isNew
|
|| ((isNew
|
||||||
&& [(MAPIStoreFolder *) container subscriberCanCreateMessages])
|
&& [(MAPIStoreFolder *) container subscriberCanCreateMessages])
|
||||||
|| (!isNew && [self subscriberCanModifyMessage])))
|
|| (!isNew && [self subscriberCanModifyMessage])))
|
||||||
|
|
Loading…
Reference in a new issue