[evolution-mapi] Bug #629492 - Messages can be without recipients
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi] Bug #629492 - Messages can be without recipients
- Date: Wed, 29 Sep 2010 10:36:31 +0000 (UTC)
commit d52c2d0f337523d2a6600877aa58ff77a277c69e
Author: Milan Crha <mcrha redhat com>
Date: Wed Sep 29 12:36:01 2010 +0200
Bug #629492 - Messages can be without recipients
src/libexchangemapi/exchange-mapi-mail-utils.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/libexchangemapi/exchange-mapi-mail-utils.c b/src/libexchangemapi/exchange-mapi-mail-utils.c
index e608753..5cd993c 100644
--- a/src/libexchangemapi/exchange-mapi-mail-utils.c
+++ b/src/libexchangemapi/exchange-mapi-mail-utils.c
@@ -304,7 +304,8 @@ mapi_mime_set_recipient_list (CamelMimeMessage *msg, MailItem *item)
GSList *l = NULL;
CamelInternetAddress *to_addr, *cc_addr, *bcc_addr;
- g_return_if_fail (item->recipients != NULL);
+ if (!item->recipients || item->header.transport_headers)
+ return;
to_addr = camel_internet_address_new ();
cc_addr = camel_internet_address_new ();
@@ -360,7 +361,9 @@ mapi_mime_set_recipient_list (CamelMimeMessage *msg, MailItem *item)
camel_mime_message_set_recipients(msg, "Bcc", bcc_addr);
}
- /*TODO : Unref *_addr ? */
+ g_object_unref (to_addr);
+ g_object_unref (cc_addr);
+ g_object_unref (bcc_addr);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]