[balsa/gmime3: 30/52] Oops--missed one case



commit a6677ed2feb958d23040fd983cda3c6b48b31a72
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]