summaryrefslogtreecommitdiffstats
path: root/notmuch-reply.c
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2017-05-05 23:26:57 -0300
committerDavid Bremner <david@tethera.net>2017-07-14 17:58:09 -0300
commitcbb2d5608ef6dd54d6e9e19b2bb570d3fe54b28b (patch)
tree3ef9a10b516b62ec61149958016d9470a524b6be /notmuch-reply.c
parentd7fea369160c548524fd8958ff88d6faacfabe3a (diff)
lib/cli: replace use of g_mime_message_get_sender
This function changes semantics in gmime-3.0 so make a new function that provides the same functionality in both
Diffstat (limited to 'notmuch-reply.c')
-rw-r--r--notmuch-reply.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/notmuch-reply.c b/notmuch-reply.c
index f789a140..ceb1d231 100644
--- a/notmuch-reply.c
+++ b/notmuch-reply.c
@@ -47,9 +47,9 @@ format_part_reply (GMimeStream *stream, mime_node_t *node)
InternetAddressList *recipients;
char *recipients_string;
- g_mime_stream_printf (stream, "> From: %s\n", g_mime_message_get_sender (message));
recipients = g_mime_message_get_recipients (message, GMIME_RECIPIENT_TYPE_TO);
recipients_string = internet_address_list_to_string (recipients, 0);
+ g_mime_stream_printf (stream, "> From: %s\n", g_mime_message_get_from_string (message));
if (recipients_string)
g_mime_stream_printf (stream, "> To: %s\n",
recipients_string);
@@ -292,8 +292,7 @@ static InternetAddressList *get_sender(GMimeMessage *message)
g_object_unref (G_OBJECT (reply_to_list));
}
- return internet_address_list_parse_string (
- g_mime_message_get_sender (message));
+ return g_mime_message_get_from (message);
}
static InternetAddressList *get_to(GMimeMessage *message)