X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-reply.c;h=ceb1d231e6c85a7b6d23dedc81a5d8ad861c2e0e;hp=f789a14083e0fa444a294cd2e4d2c0c559459806;hb=cbb2d5608ef6dd54d6e9e19b2bb570d3fe54b28b;hpb=d7fea369160c548524fd8958ff88d6faacfabe3a 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)