[balsa/gmime3: 21/50] g_mime_parser_get_from() has been renamed
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gmime3: 21/50] g_mime_parser_get_from() has been renamed
- Date: Fri, 31 Jan 2020 18:47:36 +0000 (UTC)
commit cbd28e15dbbea4fb82a4e46d6fb162ef5e2aff4a
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 0c263dd88..01cdd6ae2 100644
--- a/libbalsa/mailbox_mbox.c
+++ b/libbalsa/mailbox_mbox.c
@@ -475,7 +475,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;
}
@@ -1640,7 +1640,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",
@@ -1673,7 +1673,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"))
@@ -1683,7 +1683,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]