[balsa/gmime3: 28/50] Oops--missed one case
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gmime3: 28/50] Oops--missed one case
- Date: Sun, 19 Jan 2020 21:13:13 +0000 (UTC)
commit c98711c6c66fc5d12b2c76b415ffa9c48b633819
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]