[balsa/gmime3: 41/72] g_mime_parser_set_scan_from() has been replaced



commit 9dc4b6b9edddd78417a8389eb51a378845a23166
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 5f1c5a9bc..6ad559ba8 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 d466dd551..bb374c895 100644
--- a/libbalsa/mailbox_local.c
+++ b/libbalsa/mailbox_local.c
@@ -2083,7 +2083,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 eb638d664..0f67d8ad5 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]