diff options
author | David Bremner <david@tethera.net> | 2017-05-04 14:59:37 -0400 |
---|---|---|
committer | David Bremner <david@tethera.net> | 2017-07-14 17:58:09 -0300 |
commit | d7fea369160c548524fd8958ff88d6faacfabe3a (patch) | |
tree | c12c229ec068d36ec8bab27e2746f056ebb2c2f8 /notmuch-reply.c | |
parent | 67dbd24ece883e9cb0258fce289e40ca276b729d (diff) |
cli: replace use of g_mime_message_get_reply_to
This function changes signature in gmime 3.0, so we provide two new
functions, one for each signature.
Diffstat (limited to 'notmuch-reply.c')
-rw-r--r-- | notmuch-reply.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/notmuch-reply.c b/notmuch-reply.c index 857e1e14..f789a140 100644 --- a/notmuch-reply.c +++ b/notmuch-reply.c @@ -268,12 +268,11 @@ reply_to_header_is_redundant (GMimeMessage *message, static InternetAddressList *get_sender(GMimeMessage *message) { - const char *reply_to; - - reply_to = g_mime_message_get_reply_to (message); - if (reply_to && *reply_to) { - InternetAddressList *reply_to_list; + InternetAddressList *reply_to_list; + reply_to_list = g_mime_message_get_reply_to_list (message); + if (reply_to_list && + internet_address_list_length (reply_to_list) > 0) { /* * Some mailing lists munge the Reply-To header despite it * being A Bad Thing, see @@ -287,7 +286,6 @@ static InternetAddressList *get_sender(GMimeMessage *message) * to the list. Note that the address in the Reply-To header * will always appear in the reply if reply_all is true. */ - reply_to_list = internet_address_list_parse_string (reply_to); if (! reply_to_header_is_redundant (message, reply_to_list)) return reply_to_list; |