[balsa/gmime3: 8/50] g_mime_parser_construct_message()



commit 0343cda1b9f84bd5e85ddb3f55cbcc1d7d404916
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Wed Nov 20 19:23:21 2019 -0800

    g_mime_parser_construct_message()
    
    now has a parser-options second argument.

 libbalsa/body.c          | 2 +-
 libbalsa/mailbox.c       | 2 +-
 libbalsa/mailbox_imap.c  | 2 +-
 libbalsa/mailbox_local.c | 2 +-
 libbalsa/mailbox_mbox.c  | 8 ++++----
 libbalsa/send.c          | 2 +-
 src/sendmsg-window.c     | 2 +-
 7 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/libbalsa/body.c b/libbalsa/body.c
index 1148afa97..d3ca9396d 100644
--- a/libbalsa/body.c
+++ b/libbalsa/body.c
@@ -230,7 +230,7 @@ libbalsa_message_body_set_text_rfc822headers(LibBalsaMessageBody *body)
        g_mime_stream_reset(headers);
        parser = g_mime_parser_new_with_stream(headers);
        g_object_unref(headers);
-       dummy_msg = g_mime_parser_construct_message(parser);
+       dummy_msg = g_mime_parser_construct_message(parser, libbalsa_parser_options());
        g_object_unref(parser);
 
        body->embhdrs = libbalsa_message_body_extract_embedded_headers(dummy_msg);
diff --git a/libbalsa/mailbox.c b/libbalsa/mailbox.c
index 418e4049c..87e481d7f 100644
--- a/libbalsa/mailbox.c
+++ b/libbalsa/mailbox.c
@@ -4190,7 +4190,7 @@ lbm_get_mime_msg(LibBalsaMailbox * mailbox, LibBalsaMessage *message)
                                                     TRUE);
         parser = g_mime_parser_new_with_stream(stream);
         g_object_unref(stream);
-        mime_msg = g_mime_parser_construct_message(parser);
+        mime_msg = g_mime_parser_construct_message(parser, libbalsa_parser_options());
         g_object_unref(parser);
     }
     libbalsa_mailbox_release_message(mailbox, message);
diff --git a/libbalsa/mailbox_imap.c b/libbalsa/mailbox_imap.c
index 7bf9e851c..2f605a9e3 100644
--- a/libbalsa/mailbox_imap.c
+++ b/libbalsa/mailbox_imap.c
@@ -2174,7 +2174,7 @@ get_struct_from_cache(LibBalsaMailbox *mailbox, LibBalsaMessage *message,
         g_object_unref(fstream);
 
         g_mime_parser_set_scan_from(mime_parser, FALSE);
-        mime_msg = g_mime_parser_construct_message(mime_parser);
+        mime_msg = g_mime_parser_construct_message(mime_parser, libbalsa_parser_options());
         g_object_unref(mime_parser);
 
         libbalsa_message_set_mime_message(message, mime_msg);
diff --git a/libbalsa/mailbox_local.c b/libbalsa/mailbox_local.c
index 39e2a396c..3c0fdb8c5 100644
--- a/libbalsa/mailbox_local.c
+++ b/libbalsa/mailbox_local.c
@@ -2076,7 +2076,7 @@ libbalsa_mailbox_local_get_mime_message(LibBalsaMailbox * mailbox,
 
     mime_parser = g_mime_parser_new_with_stream(mime_stream);
     g_mime_parser_set_scan_from(mime_parser, FALSE);
-    mime_message = g_mime_parser_construct_message(mime_parser);
+    mime_message = g_mime_parser_construct_message(mime_parser, libbalsa_parser_options());
 
     g_object_unref(mime_parser);
     g_object_unref(mime_stream);
diff --git a/libbalsa/mailbox_mbox.c b/libbalsa/mailbox_mbox.c
index efdeb21a9..8b073b41c 100644
--- a/libbalsa/mailbox_mbox.c
+++ b/libbalsa/mailbox_mbox.c
@@ -453,7 +453,7 @@ parse_mailbox(LibBalsaMailboxMbox * mbox)
         off_t offset;
 
         msg_info.status = msg_info.x_status = msg_info.mime_version = -1;
-        mime_message   = g_mime_parser_construct_message(gmime_parser);
+        mime_message   = g_mime_parser_construct_message(gmime_parser, libbalsa_parser_options());
         if (mime_message == NULL) {
             /* Skip to the next message, if any */
             GMimeStream *mbox_stream;
@@ -1122,7 +1122,7 @@ lbm_mbox_get_mime_message(LibBalsaMailbox * mailbox,
     libbalsa_mime_stream_shared_lock(stream);
     parser = g_mime_parser_new_with_stream(stream);
 
-    mime_message = g_mime_parser_construct_message(parser);
+    mime_message = g_mime_parser_construct_message(parser, libbalsa_parser_options());
     g_object_unref(parser);
     libbalsa_mime_stream_shared_unlock(stream);
     g_object_unref(stream);
@@ -1670,7 +1670,7 @@ libbalsa_mailbox_mbox_sync(LibBalsaMailbox * mailbox, gboolean expunge)
            libbalsa_message_set_msgno(msg_info->local_info.message, j + 1);
 
        msg_info->status = msg_info->x_status = msg_info->mime_version = -1;
-       mime_msg = g_mime_parser_construct_message(gmime_parser);
+       mime_msg = g_mime_parser_construct_message(gmime_parser, libbalsa_parser_options());
         if (!mime_msg)
             /* Try to recover */
             continue;
@@ -1823,7 +1823,7 @@ lbm_mbox_armored_object(GMimeStream * stream)
     GMimeObject *object;
 
     parser = g_mime_parser_new_with_stream(stream);
-    object = GMIME_OBJECT(g_mime_parser_construct_message(parser));
+    object = GMIME_OBJECT(g_mime_parser_construct_message(parser), libbalsa_parser_options());
     g_object_unref(parser);
     g_mime_object_encode(object, GMIME_ENCODING_CONSTRAINT_7BIT);
 
diff --git a/libbalsa/send.c b/libbalsa/send.c
index 69a66da98..d57d9492e 100644
--- a/libbalsa/send.c
+++ b/libbalsa/send.c
@@ -1331,7 +1331,7 @@ libbalsa_message_create_mime_message(LibBalsaMessage *message,
                 }
                 parser = g_mime_parser_new_with_stream(stream);
                 g_object_unref(stream);
-                mime_msg = g_mime_parser_construct_message(parser);
+                mime_msg = g_mime_parser_construct_message(parser, libbalsa_parser_options());
                 g_object_unref(parser);
                 mime_part =
                     GMIME_OBJECT(g_mime_message_part_new_with_message
diff --git a/src/sendmsg-window.c b/src/sendmsg-window.c
index 0b6994610..4a2abad6f 100644
--- a/src/sendmsg-window.c
+++ b/src/sendmsg-window.c
@@ -1632,7 +1632,7 @@ get_fwd_mail_headers(const gchar *mailfile)
     /* parse the file */
     parser = g_mime_parser_new();
     g_mime_parser_init_with_stream(parser, stream);
-    message = g_mime_parser_construct_message (parser);
+    message = g_mime_parser_construct_message (parser, libbalsa_parser_options());
     g_object_unref (parser);
     g_object_unref(stream);
     close(fd);


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