[balsa/gmime3: 27/49] Oops--missed one case
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gmime3: 27/49] Oops--missed one case
- Date: Sun, 19 Jan 2020 19:17:00 +0000 (UTC)
commit d677f768a59a93177aa27072fafba5d8f181bf7d
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Fri Nov 22 14:42:40 2019 -0800
Oops--missed one case
in commit 832bb35a4425b952b727a2ccd5273aafc705c791
modified: libbalsa/message.c
libbalsa/message.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/libbalsa/message.c b/libbalsa/message.c
index 6cf08529f..20ce4df1a 100644
--- a/libbalsa/message.c
+++ b/libbalsa/message.c
@@ -537,11 +537,11 @@ libbalsa_message_user_hdrs_from_gmime(GMimeMessage * message)
mailbox driver does not copy references to user_headers.
*/
value = g_mime_object_get_header(GMIME_OBJECT(message), "References");
- if (value) {
+ if (value != NULL) {
#if BALSA_NEEDS_SEPARATE_USER_HEADERS
GMimeReferences *references, *reference;
- reference = references = g_mime_references_decode(value);
- while (reference) {
+ references = g_mime_references_parse(NULL, value);
+ for (reference = references; reference != NULL; reference = reference->next) {
res =
g_list_prepend(res,
libbalsa_create_hdr_pair("References",
@@ -549,7 +549,6 @@ libbalsa_message_user_hdrs_from_gmime(GMimeMessage * message)
("<%s>",
reference->
msgid)));
- reference = reference->next;
}
g_mime_references_clear(&references);
#else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]