[balsa/gmime3: 43/72] g_mime_parser_get_from() has been renamed



commit dbe1c563b663caee4b9184b05468c858348f08b5
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Fri Nov 22 09:52:11 2019 -0800

    g_mime_parser_get_from() has been renamed
    
    to g_mime_parser_get_mbox_marker().
    
    Also clean up the previous commit.

 libbalsa/mailbox_mbox.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libbalsa/mailbox_mbox.c b/libbalsa/mailbox_mbox.c
index ded259827..4733f5a0c 100644
--- a/libbalsa/mailbox_mbox.c
+++ b/libbalsa/mailbox_mbox.c
@@ -476,7 +476,7 @@ parse_mailbox(LibBalsaMailboxMbox * mbox)
         msg_info.start = g_mime_parser_get_mbox_marker_offset(gmime_parser);
         msg_info.end   = g_mime_parser_tell(gmime_parser);
         if (msg_info.end <= msg_info.start
-            || !(from = g_mime_parser_get_from(gmime_parser))) {
+            || !(from = g_mime_parser_get_mbox_marker(gmime_parser))) {
            g_object_unref(mime_message);
             continue;
        }
@@ -1641,7 +1641,7 @@ libbalsa_mailbox_mbox_sync(LibBalsaMailbox * mailbox, gboolean expunge)
        return FALSE;
     }
     gmime_parser = g_mime_parser_new_with_stream(mbox_stream);
-    g_mime_parser_set_scan_from(gmime_parser, TRUE);
+    g_mime_parser_set_format(gmime_parser, GMIME_FORMAT_MESSAGE);
     g_mime_parser_set_respect_content_length(gmime_parser, TRUE);
     g_mime_parser_set_header_regex(gmime_parser,
                                    "^Status|^X-Status|^MIME-Version",
@@ -1674,7 +1674,7 @@ libbalsa_mailbox_mbox_sync(LibBalsaMailbox * mailbox, gboolean expunge)
         if (!mime_msg)
             /* Try to recover */
             continue;
-        msg_info.start = g_mime_parser_get_mbox_marker_offset(gmime_parser);
+        msg_info->start = g_mime_parser_get_mbox_marker_offset(gmime_parser);
 
        /* Make sure we don't have offsets for any encapsulated headers. */
        if (!g_mime_object_get_header(GMIME_OBJECT(mime_msg), "Status"))
@@ -1684,7 +1684,7 @@ libbalsa_mailbox_mbox_sync(LibBalsaMailbox * mailbox, gboolean expunge)
        if (!g_mime_object_get_header(GMIME_OBJECT(mime_msg), "MIME-Version"))
            msg_info->mime_version = -1;
 
-       from = g_mime_parser_get_from(gmime_parser);
+       from = g_mime_parser_get_mbox_marker(gmime_parser);
         if (!from) {
             /* Try to recover */
             g_object_unref(mime_msg);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]