[evolution-mapi] Bug #586199 - Recurrence event modification doesn't get reflected
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi] Bug #586199 - Recurrence event modification doesn't get reflected
- Date: Tue, 24 Aug 2010 15:41:06 +0000 (UTC)
commit 5827ac7d70c689b463df1e82a54b24c6b0c8899c
Author: Milan Crha <mcrha redhat com>
Date: Tue Aug 24 17:40:31 2010 +0200
Bug #586199 - Recurrence event modification doesn't get reflected
src/libexchangemapi/exchange-mapi-connection.c | 20 +++++++-------------
1 files changed, 7 insertions(+), 13 deletions(-)
---
diff --git a/src/libexchangemapi/exchange-mapi-connection.c b/src/libexchangemapi/exchange-mapi-connection.c
index ceb3845..5b7b8e8 100644
--- a/src/libexchangemapi/exchange-mapi-connection.c
+++ b/src/libexchangemapi/exchange-mapi-connection.c
@@ -629,16 +629,8 @@ exchange_mapi_util_read_generic_stream (mapi_object_t *obj_message, const uint32
if (ms == MAPI_E_SUCCESS) {
ExchangeMAPIStream *stream = g_new0 (ExchangeMAPIStream, 1);
- struct mapi_SPropValue_array properties_array;
- /* Build a mapi_SPropValue_array structure */
- properties_array.cValues = 1;
- properties_array.lpProps = talloc_zero_array (mem_ctx, struct mapi_SPropValue, properties_array.cValues + 1);
- properties_array.lpProps[0].ulPropTag = proptag;
- /* This call is needed in case the read stream was a named prop. */
- mapi_SPropValue_array_named (obj_message, &properties_array);
-
- stream->proptag = properties_array.lpProps[0].ulPropTag;
+ stream->proptag = proptag;
set_stream_value (stream, cpid, buf_data, off_data, FALSE);
g_debug("Attempt succeeded for proptag 0x%08X (after name conversion) ", stream->proptag);
@@ -1023,6 +1015,8 @@ exchange_mapi_util_get_attachments (ExchangeMapiConnection *conn, mapi_id_t fid,
}
}
+ mapi_SPropValue_array_named (&obj_attach, &properties);
+
/* just to get all the other streams */
for (z = 0; z < properties.cValues; z++) {
if ((properties.lpProps[z].ulPropTag & 0xFFFF) == PT_BINARY) {
@@ -1663,6 +1657,8 @@ exchange_mapi_connection_fetch_items (ExchangeMapiConnection *conn, mapi_id_t
FetchItemsCallbackData *item_data;
if ((options & MAPI_OPTIONS_DONT_OPEN_MESSAGE) == 0) {
+ mapi_SPropValue_array_named (&obj_message, &properties_array);
+
if ((options & MAPI_OPTIONS_FETCH_GENERIC_STREAMS) != 0) {
uint32_t z;
const uint32_t *cpid = exchange_mapi_util_find_array_propval (&properties_array, PR_INTERNET_CPID);
@@ -1673,8 +1669,6 @@ exchange_mapi_connection_fetch_items (ExchangeMapiConnection *conn, mapi_id_t
exchange_mapi_util_read_generic_stream (&obj_message, cpid, properties_array.lpProps[z].ulPropTag, &stream_list, &properties_array, NULL);
}
}
-
- mapi_SPropValue_array_named(&obj_message, &properties_array);
}
/* NOTE: stream_list, recipient_list and attach_list
@@ -1807,6 +1801,8 @@ exchange_mapi_connection_fetch_object_props (ExchangeMapiConnection *conn, mapi_
}
if (ms == MAPI_E_SUCCESS) {
+ mapi_SPropValue_array_named (obj_message, &properties_array);
+
if ((options & MAPI_OPTIONS_FETCH_GENERIC_STREAMS)) {
uint32_t z;
@@ -1817,8 +1813,6 @@ exchange_mapi_connection_fetch_object_props (ExchangeMapiConnection *conn, mapi_
}
}
}
-
- mapi_SPropValue_array_named (obj_message, &properties_array);
}
/* Release the objects so that the callback may use the store. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]