Monotone-Parent: b062a471e751aff2d35891675a50d0fff8918047

Monotone-Revision: ab9f5dfc9882f0fa2e4df964b47cb60942c58c9a

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2011-04-19T22:22:26
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2011-04-19 22:22:26 +00:00
parent 6e03acd9a8
commit f805951939
7 changed files with 17 additions and 244 deletions

View File

@@ -512,16 +512,6 @@ static Class NSExceptionK, MAPIStoreSentItemsFolderK, MAPIStoreDraftsFolderK;
bodyStringFromCharset: charset];
*data = [stringValue asUnicodeInMemCtx: memCtx];
if (strlen (*data) > 16384)
{
/* TODO: currently a hack to transfer properties as
streams */
[newProperties setObject: stringValue
forKey: MAPIPropertyKey (PR_BODY_UNICODE)];
*data = NULL;
rc = MAPI_E_NOT_ENOUGH_MEMORY;
[self logWithFormat: @"PR_BODY data too wide"];
}
}
else
rc = MAPISTORE_ERR_NOT_FOUND;
@@ -581,19 +571,7 @@ static Class NSExceptionK, MAPIStoreSentItemsFolderK, MAPIStoreDraftsFolderK;
= [sogoObject lookupInfoForBodyPart: [key _strippedBodyKey]];
encoding = [partHeaderData objectForKey: @"encoding"];
content = [content bodyDataFromEncoding: encoding];
if ([content length] > 16384)
{
/* TODO: currently a hack to transfer properties as
streams */
[newProperties setObject: content
forKey: MAPIPropertyKey (PR_HTML)];
*data = NULL;
rc = MAPI_E_NOT_ENOUGH_MEMORY;
[self logWithFormat: @"PR_HTML data too wide"];
}
else
*data = [content asBinaryInMemCtx: memCtx];
*data = [content asBinaryInMemCtx: memCtx];
}
else
{