[balsa/gmime3: 18/49] g_mime_parser_set_scan_from() has been replaced



commit 1f97af1755d28d6367964fbd6ddf941d33b8a0fc
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Fri Nov 22 09:13:02 2019 -0800

    g_mime_parser_set_scan_from() has been replaced
    
    by g_mime_parser_set_format().
    
    modified:   libbalsa/mailbox_imap.c
    modified:   libbalsa/mailbox_local.c
    modified:   libbalsa/mailbox_mbox.c

 libbalsa/mailbox_imap.c  | 2 +-
 libbalsa/mailbox_local.c | 2 +-
 libbalsa/mailbox_mbox.c  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libbalsa/mailbox_imap.c b/libbalsa/mailbox_imap.c
index 3f49eae52..540f02c98 100644
--- a/libbalsa/mailbox_imap.c
+++ b/libbalsa/mailbox_imap.c
@@ -2173,7 +2173,7 @@ get_struct_from_cache(LibBalsaMailbox *mailbox, LibBalsaMessage *message,
         mime_parser = g_mime_parser_new_with_stream(fstream);
         g_object_unref(fstream);
 
-        g_mime_parser_set_scan_from(mime_parser, FALSE);
+        g_mime_parser_set_format(mime_parser, GMIME_FORMAT_MESSAGE);
         mime_msg = g_mime_parser_construct_message(mime_parser, libbalsa_parser_options());
         g_object_unref(mime_parser);
 
diff --git a/libbalsa/mailbox_local.c b/libbalsa/mailbox_local.c
index 9c78458e8..27ffeb4ce 100644
--- a/libbalsa/mailbox_local.c
+++ b/libbalsa/mailbox_local.c
@@ -2077,7 +2077,7 @@ libbalsa_mailbox_local_get_mime_message(LibBalsaMailbox * mailbox,
        return NULL;
 
     mime_parser = g_mime_parser_new_with_stream(mime_stream);
-    g_mime_parser_set_scan_from(mime_parser, FALSE);
+    g_mime_parser_set_format(mime_parser, GMIME_FORMAT_MESSAGE);
     mime_message = g_mime_parser_construct_message(mime_parser, libbalsa_parser_options());
 
     g_object_unref(mime_parser);
diff --git a/libbalsa/mailbox_mbox.c b/libbalsa/mailbox_mbox.c
index ab81ccd72..adf128918 100644
--- a/libbalsa/mailbox_mbox.c
+++ b/libbalsa/mailbox_mbox.c
@@ -437,7 +437,7 @@ parse_mailbox(LibBalsaMailboxMbox * mbox)
     unsigned msgno = mbox->msgno_2_msg_info->len;
 
     gmime_parser = g_mime_parser_new_with_stream(mbox->gmime_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",


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