[evolution-mapi] Bug #608862 - Remove attachments when none specified on item modify



commit e64e50198ca4f989f167c7d306048902bcb1d1bb
Author: Milan Crha <mcrha redhat com>
Date:   Thu Feb 4 14:09:04 2010 +0100

    Bug #608862 - Remove attachments when none specified on item modify

 src/libexchangemapi/exchange-mapi-connection.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/libexchangemapi/exchange-mapi-connection.c b/src/libexchangemapi/exchange-mapi-connection.c
index 0f65134..b59eddd 100644
--- a/src/libexchangemapi/exchange-mapi-connection.c
+++ b/src/libexchangemapi/exchange-mapi-connection.c
@@ -2384,6 +2384,8 @@ exchange_mapi_modify_item (uint32_t olFolder, mapi_id_t fid, mapi_id_t mid,
 	/* Set attachments if any */
 	if (attachments) {
 		exchange_mapi_util_set_attachments (&obj_message, attachments, TRUE);
+	} else {
+		exchange_mapi_util_delete_attachments (&obj_message);
 	}
 
 	/* Set recipients if any */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]