[evolution-activesync/wip/camel-more-gobject] Bug 773787 - Replace CamelHeaderRaw by CamelNameValueArray
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-activesync/wip/camel-more-gobject] Bug 773787 - Replace CamelHeaderRaw by CamelNameValueArray
- Date: Mon, 7 Nov 2016 10:44:07 +0000 (UTC)
commit 52b0b1b532297bcf83c18e14b2600902f577f309
Author: Milan Crha <mcrha redhat com>
Date: Mon Nov 7 11:44:28 2016 +0100
Bug 773787 - Replace CamelHeaderRaw by CamelNameValueArray
camel/camel-eas-utils.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/camel/camel-eas-utils.c b/camel/camel-eas-utils.c
index 8fd0239..951a545 100644
--- a/camel/camel-eas-utils.c
+++ b/camel/camel-eas-utils.c
@@ -402,7 +402,7 @@ camel_eas_utils_sync_created_items (CamelEasFolder *eas_folder, GSList *items_cr
for (l = items_created; l != NULL; l = g_slist_next (l)) {
EasEmailInfo *item = l->data;
- struct _camel_header_raw *camel_headers = NULL;
+ CamelNameValueArray *camel_headers;
CamelMessageInfo *mi;
int flags = 0;
GSList *hl;
@@ -419,15 +419,16 @@ camel_eas_utils_sync_created_items (CamelEasFolder *eas_folder, GSList *items_cr
continue;
}
+ camel_headers = camel_name_value_array_new ();
for (hl = item->headers; hl; hl = g_slist_next(hl)) {
EasEmailHeader *hdr = hl->data;
- camel_header_raw_append (&camel_headers, hdr->name, hdr->value, 0);
+ camel_name_value_array_append (camel_headers, hdr->name, hdr->value);
}
- mi = camel_folder_summary_info_new_from_header (folder_summary, camel_headers);
+ mi = camel_folder_summary_info_new_from_headers (folder_summary, camel_headers);
- camel_header_raw_clear (&camel_headers);
+ camel_name_value_array_free (camel_headers);
camel_message_info_set_abort_notifications (mi, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]