[balsa/gmime3: 28/50] Oops--missed one case



commit 8a82a3c515f02cdc7d1ef600819116a0b0e3e91d
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]