[evolution-mapi] Unable to send mail after fix for bug #608388



commit 3ce2b644fa5ddb19cc488a20ae4ade211bda4a53
Author: Milan Crha <mcrha redhat com>
Date:   Tue Oct 19 12:32:05 2010 +0200

    Unable to send mail after fix for bug #608388

 src/camel/camel-mapi-transport.c               |    8 ++++++++
 src/libexchangemapi/exchange-mapi-connection.c |    2 +-
 2 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/camel/camel-mapi-transport.c b/src/camel/camel-mapi-transport.c
index ab5a1a7..b5908b3 100644
--- a/src/camel/camel-mapi-transport.c
+++ b/src/camel/camel-mapi-transport.c
@@ -63,7 +63,15 @@ mapi_message_item_send (ExchangeMapiConnection *conn, MailItem *item, GError **p
 	guint64 fid = 0;
 	mapi_id_t mid = 0;
 
+	#define unset(x) g_free (x); x = NULL
+
 	item->header.flags = MSGFLAG_UNSENT;
+	unset (item->header.from);
+	unset (item->header.from_email);
+	unset (item->header.transport_headers);
+	item->header.recieved_time = 0;
+
+	#undef unset
 
 	mid = exchange_mapi_connection_create_item (conn, olFolderSentMail, fid,
 					 camel_mapi_utils_create_item_build_props, item,
diff --git a/src/libexchangemapi/exchange-mapi-connection.c b/src/libexchangemapi/exchange-mapi-connection.c
index f8c8f27..09527e5 100644
--- a/src/libexchangemapi/exchange-mapi-connection.c
+++ b/src/libexchangemapi/exchange-mapi-connection.c
@@ -1376,7 +1376,7 @@ exchange_mapi_util_modify_recipients (ExchangeMapiConnection *conn, TALLOC_CTX *
 	/* Modify the recipient table */
 	ms = ModifyRecipients (obj_message, SRowSet);
 	if (ms != MAPI_E_SUCCESS) {
-		make_mapi_error (perror, "ModifyRecpients", ms);
+		make_mapi_error (perror, "ModifyRecipients", ms);
 		goto cleanup;
 	}
 



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