[balsa/gmime3: 9/51] g_mime_parser_construct_message()
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gmime3: 9/51] g_mime_parser_construct_message()
- Date: Mon, 24 Feb 2020 15:36:19 +0000 (UTC)
commit 02f2fb5090f114c467d0238b828fe0aebc40c8a8
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 a612b61b9..d5f87dcd7 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 d8cd283f3..6100ef284 100644
--- a/libbalsa/mailbox.c
+++ b/libbalsa/mailbox.c
@@ -4238,7 +4238,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 eea73e8ee..8724c81bb 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 0fa1e62c8..7a2156c4c 100644
--- a/libbalsa/mailbox_local.c
+++ b/libbalsa/mailbox_local.c
@@ -2078,7 +2078,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 40f4df4e1..32655ef77 100644
--- a/libbalsa/mailbox_mbox.c
+++ b/libbalsa/mailbox_mbox.c
@@ -452,7 +452,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;
@@ -1121,7 +1121,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);
@@ -1669,7 +1669,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;
@@ -1822,7 +1822,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 0cb397283..19e5f1b0b 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 b7f2dea17..9d7fb061c 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]