mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-07 22:38:51 +00:00
Monotone-Parent: 260a782f71d54b70c19078f5cbc97b7317db579a
Monotone-Revision: a18a109c58aa27267200fdcfd8fda6939aa301ff Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-08-04T17:03:29 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
|
||||
#import "MAPIStoreContext.h"
|
||||
#import "MAPIStoreTypes.h"
|
||||
#import "NSObject+MAPIStore.h"
|
||||
#import "NSString+MAPIStore.h"
|
||||
|
||||
#import "MAPIStoreDraftsMessage.h"
|
||||
@@ -147,6 +148,22 @@ typedef void (*getMessageData_inMemCtx_) (MAPIStoreMessage *, SEL,
|
||||
[super getMessageData: dataPtr inMemCtx: memCtx];
|
||||
}
|
||||
|
||||
- (int) getPrIconIndex: (void **) data
|
||||
inMemCtx: (TALLOC_CTX *) memCtx
|
||||
{
|
||||
int rc;
|
||||
|
||||
if ([sogoObject isKindOfClass: SOGoDraftObjectK])
|
||||
{
|
||||
*data = MAPILongValue (memCtx, 0xffffffff);
|
||||
rc = MAPISTORE_SUCCESS;
|
||||
}
|
||||
else
|
||||
rc = [super getPrIconIndex: data inMemCtx: memCtx];
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
- (int) getPrImportance: (void **) data
|
||||
inMemCtx: (TALLOC_CTX *) memCtx
|
||||
{
|
||||
@@ -197,6 +214,14 @@ typedef void (*getMessageData_inMemCtx_) (MAPIStoreMessage *, SEL,
|
||||
return rc;
|
||||
}
|
||||
|
||||
- (int) getPrFlagStatus: (void **) data
|
||||
inMemCtx: (TALLOC_CTX *) memCtx
|
||||
{
|
||||
return ([sogoObject isKindOfClass: SOGoDraftObjectK]
|
||||
? [self getLongZero: data inMemCtx: memCtx]
|
||||
: [super getPrFlagStatus: data inMemCtx: memCtx]);
|
||||
}
|
||||
|
||||
- (void) _saveAttachment: (NSString *) attachmentKey
|
||||
{
|
||||
NSDictionary *properties, *metadata;
|
||||
|
||||
Reference in New Issue
Block a user