From 0d12810e14c161611f8e31c7ef081e1abc48acb5 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 16 Aug 2012 16:29:47 +0000 Subject: [PATCH] Monotone-Parent: d9117c53c33a58d47b6b3993f78e09e431f47f96 Monotone-Revision: 586a2e5adebfaf2123f3514dffa057f7f0f0574e Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-08-16T16:29:47 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 8 ++++++++ OpenChange/MAPIStoreAppointmentWrapper.m | 18 +++++++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ba30b668a..927be6402 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2012-08-16 Wolfgang Sourdeau + + * OpenChange/MAPIStoreAppointmentWrapper.m + (-getPidTagInternetCodepage:inMemCtx:): new getter for a property + that is sometimes requested. + (-getPidTagBody:inMemCtx:): we return an empty string when no + "description"/"comment" is actually present. + 2012-08-15 Wolfgang Sourdeau * OpenChange/MAPIStoreMailFolder.m (-addProperties:): make use of diff --git a/OpenChange/MAPIStoreAppointmentWrapper.m b/OpenChange/MAPIStoreAppointmentWrapper.m index ac7cb057b..86437006a 100644 --- a/OpenChange/MAPIStoreAppointmentWrapper.m +++ b/OpenChange/MAPIStoreAppointmentWrapper.m @@ -1269,11 +1269,27 @@ static NSCharacterSet *hexCharacterSet = nil; if ([stringValue length] > 0) *data = [stringValue asUnicodeInMemCtx: memCtx]; else - rc = MAPISTORE_ERR_NOT_FOUND; + *data = [@"" asUnicodeInMemCtx: memCtx]; return rc; } +- (int) getPidTagInternetCodepage: (void **) data + inMemCtx: (TALLOC_CTX *) memCtx +{ + /* ref: + http://msdn.microsoft.com/en-us/library/dd317756%28v=vs.85%29.aspx + + minimal list that should be handled: + us-ascii: 20127 + iso-8859-1: 28591 + iso-8859-15: 28605 + utf-8: 65001 */ + *data = MAPILongValue(memCtx, 65001); + + return MAPISTORE_SUCCESS; +} + - (int) getPidLidRecurring: (void **) data inMemCtx: (TALLOC_CTX *) memCtx {