[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: Mon, 17 Feb 2020 14:23:46 +0000 (UTC)
commit 399021743a2554518a5b22d6fa1a63075f7e2c0c
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 7b86761da..9303af74f 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]