mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-10 09:21:23 +00:00
Monotone-Parent: a811cbd171c64445b4b32261e56c4b5085787de0
Monotone-Revision: c33cbc477978136a5d59d29b8df81cdc54cffc70 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-02-24T21:15:04 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
2011-02-24 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* OpenChange/MAPIStoreContext.m
|
||||
(-setProperty:withFMID:ofTableType:fromFile:): considering the
|
||||
cached message as a MAPIStoreMessage instance instead of NSDictionary.
|
||||
|
||||
* OpenChange/MAPIStoreMailMessage.m
|
||||
(_fetchAttachmentPartsInBodyInfo:withPrefix:): detect attachment
|
||||
parts based on the existence of the "filename" info parameter.
|
||||
|
||||
@@ -881,7 +881,7 @@ _prepareContextClass (struct mapistore_context *newMemCtx,
|
||||
ofTableType: (uint8_t) tableType
|
||||
fromFile: (NSFileHandle *) aFile
|
||||
{
|
||||
NSMutableDictionary *message;
|
||||
MAPIStoreMessage *message;
|
||||
NSNumber *midKey;
|
||||
NSData *fileData;
|
||||
const char *propName;
|
||||
@@ -901,10 +901,11 @@ _prepareContextClass (struct mapistore_context *newMemCtx,
|
||||
message = [messages objectForKey: midKey];
|
||||
if (message)
|
||||
{
|
||||
[message setObject: NSObjectFromStreamData (property, fileData)
|
||||
forKey: MAPIPropertyKey (property)];
|
||||
[self logWithFormat: @"(%s) message props after op", __PRETTY_FUNCTION__];
|
||||
MAPIStoreDumpMessageProperties (message);
|
||||
[message addNewProperties:
|
||||
[NSDictionary
|
||||
dictionaryWithObject: NSObjectFromStreamData (property,
|
||||
fileData)
|
||||
forKey: MAPIPropertyKey (property)]];
|
||||
rc = MAPISTORE_SUCCESS;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user